From 3e2a2695a872fafa09ecf8519377b7a032cf4015 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sun, 28 Nov 2021 10:28:20 +0100 Subject: [PATCH] fix? --- dwm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index f4e697c..7f3b33e 100644 --- a/dwm.c +++ b/dwm.c @@ -1773,9 +1773,14 @@ tagmon(const Arg *arg) { if (!selmon->sel || !mons->next) return; - if(selmon->sel->tags & SPTAGMASK){ + unsigned int sel_sp_tags = selmon->sel->tags & SPTAGMASK; + if (sel_sp_tags) { + //add all tags of scratchpad client to new mon dirtomon(arg->i)->tagset[dirtomon(arg->i)->seltags] |= selmon->sel->tags; + //? sendmontags(selmon->sel, dirtomon(arg->i), selmon->sel->tags); + //remove used scratchpad tag from old mon + selmon->tagset[selmon->seltags] -=selmon->tagset[selmon->seltags] & sel_sp_tags; } else { sendmon(selmon->sel, dirtomon(arg->i)); }