more cleanup
This commit is contained in:
parent
17af50560b
commit
b32e5d7b65
23
dwm.c
23
dwm.c
@ -1513,21 +1513,11 @@ void
|
|||||||
sendmon(Client *c, Monitor *m)
|
sendmon(Client *c, Monitor *m)
|
||||||
{
|
{
|
||||||
sendmontags(c, m, m->tagset[m->seltags]);
|
sendmontags(c, m, m->tagset[m->seltags]);
|
||||||
//if (c->mon == m)
|
|
||||||
// return;
|
|
||||||
//unfocus(c, 1);
|
|
||||||
//detach(c);
|
|
||||||
//detachstack(c);
|
|
||||||
//c->mon = m;
|
|
||||||
//c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
|
|
||||||
//attach(c);
|
|
||||||
//attachstack(c);
|
|
||||||
//focus(NULL);
|
|
||||||
//arrange(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
sendmontags(Client *c, Monitor *m, unsigned int tags){
|
sendmontags(Client *c, Monitor *m, unsigned int tags)
|
||||||
|
{
|
||||||
if (c->mon == m)
|
if (c->mon == m)
|
||||||
return;
|
return;
|
||||||
unfocus(c, 1);
|
unfocus(c, 1);
|
||||||
@ -1911,6 +1901,7 @@ setsticky(const Arg *arg)
|
|||||||
selmon->sel->issticky = arg->i;
|
selmon->sel->issticky = arg->i;
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
togglescratch(const Arg *arg)
|
togglescratch(const Arg *arg)
|
||||||
{
|
{
|
||||||
@ -1935,18 +1926,14 @@ togglescratch(const Arg *arg)
|
|||||||
focus(c);
|
focus(c);
|
||||||
restack(selmon);
|
restack(selmon);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
unsigned int newtagset = c->mon->tagset[c->mon->seltags] ^ scratchtag;
|
unsigned int newtagset = c->mon->tagset[c->mon->seltags] ^ scratchtag;
|
||||||
if (newtagset)
|
if (newtagset)
|
||||||
c->mon->tagset[c->mon->seltags] = newtagset;
|
c->mon->tagset[c->mon->seltags] = newtagset;
|
||||||
//add scratchtag to monitor where client is sent to
|
|
||||||
selmon->tagset[selmon->seltags] |= scratchtag;
|
selmon->tagset[selmon->seltags] |= scratchtag;
|
||||||
sendmontags(c, selmon, scratchtag);
|
sendmontags(c, selmon, scratchtag);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
selmon->tagset[selmon->seltags] |= scratchtag;
|
selmon->tagset[selmon->seltags] |= scratchtag;
|
||||||
spawn(&sparg);
|
spawn(&sparg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user