summaryrefslogtreecommitdiffhomepage
path: root/dwm.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-04-26 17:25:20 +0200
committerbakkeby <[email protected]>2022-04-26 17:26:35 +0200
commit2ecc15a2ef8ab45d49cbf261cb3280fe9ab3d058 (patch)
tree4ac5fbac54396244f48226fb0ff6fa45b9435905 /dwm.c
parentf2b37c411cd68bf1d3d00e7fb5889e079431247f (diff)
downloaddwm-flexipatch-2ecc15a2ef8ab45d49cbf261cb3280fe9ab3d058.tar.gz
dwm-flexipatch-2ecc15a2ef8ab45d49cbf261cb3280fe9ab3d058.zip
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. Ref. https://git.suckless.org/dwm/commit/8b48e309735f5fe49d35f86e967f4b5dea2a2f2d.html
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 a4e25ef..9f70675 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2395,6 +2395,7 @@ manage(Window w, XWindowAttributes *wa)
XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel);
#endif // BAR_FLEXWINTITLE_PATCH
configure(c); /* propagates border_width, if size doesn't change */
+ updatesizehints(c);
if (getatomprop(c, netatom[NetWMState]) == netatom[NetWMFullscreen])
setfullscreen(c, 1);
updatewmhints(c);