summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-04-26 10:30:59 +0200
committerrafa_99 <raroma09@gmail.com>2022-04-26 10:21:26 +0100
commita11ef83d1509e5fbcdb060d40b26c43dc55cfbe0 (patch)
treec66671ed2f114f7e41efbce296266485f134e1e2
parenta3d42fd7afc9bdd7bdb1de4c2c7334b65954d1a3 (diff)
Revert "manage: For isfloating/oldstate check/set, ensure trans client actually exists"
This reverts commit bece862a0fc4fc18ef9065b18cd28e2032d0d975. It caused a regression, for example: https://lists.suckless.org/hackers/2203/18220.html
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index a8d48f4..aac8437 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1157,7 +1157,7 @@ manage(Window w, XWindowAttributes *wa)
XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
grabbuttons(c, 0);
if (!c->isfloating)
- c->isfloating = c->oldstate = t || c->isfixed;
+ c->isfloating = c->oldstate = trans != None || c->isfixed;
if (c->isfloating)
XRaiseWindow(dpy, c->win);
attach(c);