mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-05 07:15:31 -04:00
tag: make sticky toggle instead of sticky all the time.
After this patch, if client is sticky and you call tag with ~0 again, instead of keeping it sticky, just move it to the current viewed tag.
This commit is contained in:
parent
a2d03cf618
commit
af60d8f72a
1 changed files with 5 additions and 1 deletions
6
dwl.c
6
dwl.c
|
|
@ -2697,7 +2697,11 @@ tag(const Arg *arg)
|
||||||
if (!sel || (arg->ui & TAGMASK) == 0)
|
if (!sel || (arg->ui & TAGMASK) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sel->tags = arg->ui & TAGMASK;
|
if ((arg->ui & TAGMASK) == TAGMASK && sel->tags == TAGMASK)
|
||||||
|
sel->tags = selmon->tagset[selmon->seltags];
|
||||||
|
else
|
||||||
|
sel->tags = arg->ui & TAGMASK;
|
||||||
|
|
||||||
focusclient(focustop(selmon), 1);
|
focusclient(focustop(selmon), 1);
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
printstatus();
|
printstatus();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue