mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
Upgrade of the tagmonfixfs patch, allows e.g. fullscreen YouTube videos to be moved to an adjacent screen
This commit is contained in:
parent
904cc5962f
commit
5911a9b7d7
18
dwm.c
18
dwm.c
@ -3270,11 +3270,21 @@ tagmon(const Arg *arg)
|
|||||||
Client *c = selmon->sel;
|
Client *c = selmon->sel;
|
||||||
if (!c || !mons->next)
|
if (!c || !mons->next)
|
||||||
return;
|
return;
|
||||||
sendmon(c, dirtomon(arg->i));
|
|
||||||
if (c->isfullscreen) {
|
if (c->isfullscreen) {
|
||||||
setfullscreen(c, 0);
|
c->isfullscreen = 0;
|
||||||
setfullscreen(c, 1);
|
sendmon(c, dirtomon(arg->i));
|
||||||
}
|
c->isfullscreen = 1;
|
||||||
|
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
|
if (!c->fakefullscreen) {
|
||||||
|
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
|
||||||
|
XRaiseWindow(dpy, c->win);
|
||||||
|
}
|
||||||
|
#elif !FAKEFULLSCREEN_PATCH
|
||||||
|
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
|
||||||
|
XRaiseWindow(dpy, c->win);
|
||||||
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
|
} else
|
||||||
|
sendmon(c, dirtomon(arg->i));
|
||||||
#else
|
#else
|
||||||
if (!selmon->sel || !mons->next)
|
if (!selmon->sel || !mons->next)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user