From 711e8d801ec4cbc3febdd10da1763a6199e899ef Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 22 Nov 2021 22:31:29 +0100 Subject: [PATCH] added support for scratchpad moving between monitors in the same way as normal windows --- dwm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index 6fc8eff..9bc6b38 100644 --- a/dwm.c +++ b/dwm.c @@ -1773,7 +1773,12 @@ tagmon(const Arg *arg) { if (!selmon->sel || !mons->next) return; - sendmon(selmon->sel, dirtomon(arg->i)); + if(selmon->sel->tags > 1 << LENGTH(tags) << LENGTH(scratchpads)) + sendmon(selmon->sel, dirtomon(arg->i)); + else { + dirtomon(arg->i)->tagset[dirtomon(arg->i)->seltags] |= selmon->sel->tags; + sendmontags(selmon->sel, dirtomon(arg->i), selmon->sel->tags); + } } void