mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
fullscreen: don't let the (always) center patch interfere with windows that start fullscreen
This commit is contained in:
parent
2c180b8d9c
commit
82a127630d
5
dwm.c
5
dwm.c
@ -2490,8 +2490,6 @@ manage(Window w, XWindowAttributes *wa)
|
|||||||
#endif // BAR_FLEXWINTITLE_PATCH
|
#endif // BAR_FLEXWINTITLE_PATCH
|
||||||
configure(c); /* propagates border_width, if size doesn't change */
|
configure(c); /* propagates border_width, if size doesn't change */
|
||||||
updatesizehints(c);
|
updatesizehints(c);
|
||||||
if (getatomprop(c, netatom[NetWMState], XA_ATOM) == netatom[NetWMFullscreen])
|
|
||||||
setfullscreen(c, 1);
|
|
||||||
updatewmhints(c);
|
updatewmhints(c);
|
||||||
#if DECORATION_HINTS_PATCH
|
#if DECORATION_HINTS_PATCH
|
||||||
updatemotifhints(c);
|
updatemotifhints(c);
|
||||||
@ -2521,6 +2519,9 @@ manage(Window w, XWindowAttributes *wa)
|
|||||||
}
|
}
|
||||||
#endif // SAVEFLOATS_PATCH / EXRESIZE_PATCH
|
#endif // SAVEFLOATS_PATCH / EXRESIZE_PATCH
|
||||||
|
|
||||||
|
if (getatomprop(c, netatom[NetWMState], XA_ATOM) == netatom[NetWMFullscreen])
|
||||||
|
setfullscreen(c, 1);
|
||||||
|
|
||||||
XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
|
XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
|
||||||
grabbuttons(c, 0);
|
grabbuttons(c, 0);
|
||||||
#if MAXIMIZE_PATCH
|
#if MAXIMIZE_PATCH
|
||||||
|
Loading…
Reference in New Issue
Block a user