diff options
| author | bakkeby <[email protected]> | 2022-03-14 09:39:19 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-03-14 09:41:32 +0100 |
| commit | 8f93bb8931207810107ed36672f17312e3c5157c (patch) | |
| tree | ce749cfba85c8dce4f814deb7989c9aebb13b124 /dwm.c | |
| parent | da5e69c4a7b322683f70f2677309017650c0c79d (diff) | |
| download | dwm-flexipatch-8f93bb8931207810107ed36672f17312e3c5157c.tar.gz dwm-flexipatch-8f93bb8931207810107ed36672f17312e3c5157c.zip | |
manage: For isfloating/oldstate check/set, ensure trans client actually exists
In certain instances trans may be set to a window that doesn't actually
map to a client via wintoclient; in this case it doesn't make sense
to set isfloating/oldstate since trans is essentially invalid in that
case / correlates to the above condition check where trans is set /
XGetTransientForHint is called.
Ref.
https://git.suckless.org/dwm/commit/bece862a0fc4fc18ef9065b18cd28e2032d0d975.html
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1773,7 +1773,9 @@ drawbar(Monitor *m) { Bar *bar; + #if !BAR_FLEXWINTITLE_PATCH if (m->showbar) + #endif // BAR_FLEXWINTITLE_PATCH for (bar = m->bar; bar; bar = bar->next) drawbarwin(bar); } @@ -2437,7 +2439,7 @@ manage(Window w, XWindowAttributes *wa) #endif // MAXIMIZE_PATCH / EXRESIZE_PATCH if (!c->isfloating) - c->isfloating = c->oldstate = trans != None || c->isfixed; + c->isfloating = c->oldstate = t || c->isfixed; if (c->isfloating) { XRaiseWindow(dpy, c->win); XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColFloat].pixel); |
