diff options
| author | bakkeby <[email protected]> | 2020-09-05 11:38:09 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-05 11:38:09 +0200 |
| commit | 5f5dc7ab9ca014eb9eb9ded31ce0455c9771c833 (patch) | |
| tree | a05df8aacb9a7051119c9d13b581b8fd673c2f03 /patch/tagswapmon.c | |
| parent | dcf7b049bade7767f9a7c726ae445c86cedcd291 (diff) | |
| download | dwm-flexipatch-5f5dc7ab9ca014eb9eb9ded31ce0455c9771c833.tar.gz dwm-flexipatch-5f5dc7ab9ca014eb9eb9ded31ce0455c9771c833.zip | |
Assortment of fullscreen improvements (togglefullscreen / fakefullscreenclient / tagallmon / tagswapmon)
Diffstat (limited to 'patch/tagswapmon.c')
| -rw-r--r-- | patch/tagswapmon.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/patch/tagswapmon.c b/patch/tagswapmon.c index 8779262..e25552f 100644 --- a/patch/tagswapmon.c +++ b/patch/tagswapmon.c @@ -13,7 +13,7 @@ tagswapmon(const Arg *arg) next = c->next; if (!ISVISIBLE(c)) continue; - unfocus(c, 1); + unfocus(c, 1, NULL); detach(c); detachstack(c); c->next = sc; @@ -24,7 +24,7 @@ tagswapmon(const Arg *arg) next = c->next; if (!ISVISIBLE(c)) continue; - unfocus(c, 1); + unfocus(c, 1, NULL); detach(c); detachstack(c); c->next = mc; @@ -38,20 +38,34 @@ tagswapmon(const Arg *arg) attach(c); attachstack(c); if (c->isfullscreen) { - setfullscreen(c, 0); - setfullscreen(c, 1); + #if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH + if (c->fakefullscreen != 1) { + 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 } } for (c = mc; c; c = next) { - next = c->next; + next = ; c->mon = selmon; c->tags = selmon->tagset[selmon->seltags]; /* assign tags of target monitor */ attach(c); attachstack(c); if (c->isfullscreen) { - setfullscreen(c, 0); - setfullscreen(c, 1); + #if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH + if (c->fakefullscreen != 1) { + 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 } } |
