added support for scratchpad moving between monitors in the same way as normal windows

This commit is contained in:
Alexander Bocken 2021-11-22 22:31:29 +01:00
parent 3f7477bc1b
commit 711e8d801e
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

5
dwm.c
View File

@ -1773,7 +1773,12 @@ tagmon(const Arg *arg)
{ {
if (!selmon->sel || !mons->next) if (!selmon->sel || !mons->next)
return; return;
if(selmon->sel->tags > 1 << LENGTH(tags) << LENGTH(scratchpads))
sendmon(selmon->sel, dirtomon(arg->i)); 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 void