mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-05-10 17:35:20 +00: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
6
dwl.c
6
dwl.c
@ -2697,7 +2697,11 @@ tag(const Arg *arg)
|
||||
if (!sel || (arg->ui & TAGMASK) == 0)
|
||||
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);
|
||||
arrange(selmon);
|
||||
printstatus();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user