summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 794fab7..6907d94 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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