diff options
| author | bakkeby <[email protected]> | 2022-09-18 20:39:31 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-09-18 20:39:31 +0200 |
| commit | 82a127630d4af24b587a575df50c564705c93e27 (patch) | |
| tree | 98963777032d54c75faab5a0aaffdc61d172ac47 | |
| parent | 2c180b8d9cf3e962cf51224dde1d143fa15920dd (diff) | |
| download | dwm-flexipatch-82a127630d4af24b587a575df50c564705c93e27.tar.gz dwm-flexipatch-82a127630d4af24b587a575df50c564705c93e27.zip | |
fullscreen: don't let the (always) center patch interfere with windows that start fullscreen
| -rw-r--r-- | dwm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2490,8 +2490,6 @@ manage(Window w, XWindowAttributes *wa) #endif // BAR_FLEXWINTITLE_PATCH configure(c); /* propagates border_width, if size doesn't change */ updatesizehints(c); - if (getatomprop(c, netatom[NetWMState], XA_ATOM) == netatom[NetWMFullscreen]) - setfullscreen(c, 1); updatewmhints(c); #if DECORATION_HINTS_PATCH updatemotifhints(c); @@ -2521,6 +2519,9 @@ manage(Window w, XWindowAttributes *wa) } #endif // SAVEFLOATS_PATCH / EXRESIZE_PATCH + if (getatomprop(c, netatom[NetWMState], XA_ATOM) == netatom[NetWMFullscreen]) + setfullscreen(c, 1); + XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); grabbuttons(c, 0); #if MAXIMIZE_PATCH |
