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:
amritxyz 2026-03-26 18:20:30 +05:45
parent a2d03cf618
commit af60d8f72a

6
dwl.c
View file

@ -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();