summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-04-27 20:41:38 +0200
committerbakkeby <[email protected]>2020-04-27 20:45:24 +0200
commit5911a9b7d78b40fb26f3453410d5f98ced673ade (patch)
treee9b5b9c48f2b06cec3d9979a803b121d398b0720
parent904cc5962f3de93d4803e200a527eddafdf56e5b (diff)
downloaddwm-flexipatch-5911a9b7d78b40fb26f3453410d5f98ced673ade.tar.gz
dwm-flexipatch-5911a9b7d78b40fb26f3453410d5f98ced673ade.zip
Upgrade of the tagmonfixfs patch, allows e.g. fullscreen YouTube videos to be moved to an adjacent screen
-rw-r--r--dwm.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index 8f9ab9e..c3c5f4f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -3270,11 +3270,21 @@ tagmon(const Arg *arg)
Client *c = selmon->sel;
if (!c || !mons->next)
return;
- sendmon(c, dirtomon(arg->i));
if (c->isfullscreen) {
- setfullscreen(c, 0);
- setfullscreen(c, 1);
- }
+ c->isfullscreen = 0;
+ 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
if (!selmon->sel || !mons->next)
return;