diff options
| author | bakkeby <[email protected]> | 2020-09-12 13:33:02 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-12 13:33:02 +0200 |
| commit | 7b477bc7dba3c29c7393e4f37963ee9f62c9c817 (patch) | |
| tree | bd57c4463fc921724c9ecfecbc769778de885c5e | |
| parent | c3e59100804bbedbc784a8722548d1a71f499334 (diff) | |
| download | dwm-flexipatch-7b477bc7dba3c29c7393e4f37963ee9f62c9c817.tar.gz dwm-flexipatch-7b477bc7dba3c29c7393e4f37963ee9f62c9c817.zip | |
fakefullscreen: fullscreen --> fake fullscreen can make the tiled window display on top of floating window
| -rw-r--r-- | dwm.c | 10 | ||||
| -rw-r--r-- | patch/togglefullscreen.c | 3 |
2 files changed, 6 insertions, 7 deletions
@@ -2981,11 +2981,13 @@ setfullscreen(Client *c, int fullscreen) c->isfullscreen = 1; #if !FAKEFULLSCREEN_PATCH c->oldbw = c->bw; + c->oldstate = c->isfloating; #if FAKEFULLSCREEN_CLIENT_PATCH - if (c->fakefullscreen == 1) + if (c->fakefullscreen == 1) { + restack(c->mon); return; + } #endif // FAKEFULLSCREEN_CLIENT_PATCH - c->oldstate = c->isfloating; c->bw = 0; c->isfloating = 1; resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); @@ -2997,19 +2999,19 @@ setfullscreen(Client *c, int fullscreen) c->isfullscreen = 0; #if !FAKEFULLSCREEN_PATCH c->bw = c->oldbw; + c->isfloating = c->oldstate; + restack(c->mon); #if FAKEFULLSCREEN_CLIENT_PATCH if (c->fakefullscreen == 1) return; if (c->fakefullscreen == 2) c->fakefullscreen = 1; #endif // FAKEFULLSCREEN_CLIENT_PATCH - c->isfloating = c->oldstate; c->x = c->oldx; c->y = c->oldy; c->w = c->oldw; c->h = c->oldh; resizeclient(c, c->x, c->y, c->w, c->h); - arrange(c->mon); #endif // !FAKEFULLSCREEN_PATCH } } diff --git a/patch/togglefullscreen.c b/patch/togglefullscreen.c index c857935..cac66e4 100644 --- a/patch/togglefullscreen.c +++ b/patch/togglefullscreen.c @@ -13,12 +13,9 @@ togglefullscreen(const Arg *arg) } else if (c->fakefullscreen == 2) { c->fakefullscreen = 0; togglefakefullscreen(NULL); - arrange(selmon); return; } #endif // FAKEFULLSCREEN_CLIENT_PATCH setfullscreen(c, !c->isfullscreen); - if (!c->isfullscreen) - arrange(c->mon); } |
