summaryrefslogtreecommitdiffhomepage
path: root/patch/fakefullscreenclient.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-11-22 09:21:56 +0100
committerbakkeby <[email protected]>2019-11-22 09:21:56 +0100
commit3b175a5387f58659c861aa1940f74bf9475a6266 (patch)
tree6ebd1009b48582a74f1dfcb8be0198f229f47921 /patch/fakefullscreenclient.c
parent9b85650c1dd6c43afb752edc22d2e038abac00ac (diff)
downloaddwm-flexipatch-3b175a5387f58659c861aa1940f74bf9475a6266.tar.gz
dwm-flexipatch-3b175a5387f58659c861aa1940f74bf9475a6266.zip
Adding improvement to the fakefullscreenclient exiting out of proper fullscreen into tiled fullscreen
Diffstat (limited to 'patch/fakefullscreenclient.c')
-rw-r--r--patch/fakefullscreenclient.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/patch/fakefullscreenclient.c b/patch/fakefullscreenclient.c
index 5b3d7af..2b4b279 100644
--- a/patch/fakefullscreenclient.c
+++ b/patch/fakefullscreenclient.c
@@ -10,6 +10,15 @@ togglefakefullscreen(const Arg *arg)
else
selmon->sel->isfullscreen = 0;
} else {
+ if (selmon->sel->isfullscreen) {
+ selmon->sel->isfloating = selmon->sel->oldstate;
+ selmon->sel->bw = selmon->sel->oldbw;
+ selmon->sel->x = selmon->sel->oldx;
+ selmon->sel->y = selmon->sel->oldy;
+ selmon->sel->w = selmon->sel->oldw;
+ selmon->sel->h = selmon->sel->oldh;
+ resizeclient(selmon->sel, selmon->sel->x, selmon->sel->y, selmon->sel->w, selmon->sel->h);
+ }
selmon->sel->fakefullscreen = 1;
selmon->sel->isfullscreen = 0;
}