tagmonfixfs: Allow moving a fullscreen window to another monitor

This commit is contained in:
Bakkeby
2022-01-10 13:51:13 +01:00
committed by Zoe Roux
parent 7e55461f42
commit 011c60fcf4

12
dwm.c
View File

@@ -2356,9 +2356,17 @@ tag(const Arg *arg)
void
tagmon(const Arg *arg)
{
if (!selmon->sel || !mons->next)
Client *c = selmon->sel;
if (!c || !mons->next)
return;
sendmon(selmon->sel, dirtomon(arg->i));
if (c->isfullscreen) {
c->isfullscreen = 0;
sendmon(c, dirtomon(arg->i));
c->isfullscreen = 1;
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
XRaiseWindow(dpy, c->win);
} else
sendmon(c, dirtomon(arg->i));
}
void