summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2022-04-26 09:42:23 +0100
committerrafa_99 <raroma09@gmail.com>2022-04-26 22:15:58 +0100
commitb57e852ec9fb167a308d4603de6ce120b7bf8f57 (patch)
tree2faccc3f4f426b7d28900a84b973cf44b5613e89 /dwm.c
parenta11ef83d1509e5fbcdb060d40b26c43dc55cfbe0 (diff)
manage: Make sure c->isfixed is applied before floating checks
Commit 8806b6e23793 ("manage: propertynotify: Reduce cost of unused size hints") mistakenly removed an early size hints update that's needed to populate c->isfixed for floating checks at manage() time. This resulted in fixed (size hint min dimensions == max dimensions) subset of windows not floating when they should. See https://lists.suckless.org/dev/2204/34730.html for discussion.
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index aac8437..27f2125 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1153,6 +1153,7 @@ manage(Window w, XWindowAttributes *wa)
XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel);
configure(c); /* propagates border_width, if size doesn't change */
updatewindowtype(c);
+ updatesizehints(c);
updatewmhints(c);
XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
grabbuttons(c, 0);