From af60d8f72ab02b1ef06cde0fd00fe7345a84bdd9 Mon Sep 17 00:00:00 2001 From: amritxyz Date: Thu, 26 Mar 2026 18:20:30 +0545 Subject: [PATCH] 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. --- dwl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 101a45f..8f91363 100644 --- a/dwl.c +++ b/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();