mirror of
https://github.com/zoriya/dwm.git
synced 2025-12-06 07:16:17 +00:00
tagmonfixfs: Allow moving a fullscreen window to another monitor
This commit is contained in:
12
dwm.c
12
dwm.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user