mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
fakefullscreen: do not interfere with client message
This commit is contained in:
parent
104c9909b5
commit
4a35cd2704
11
dwm.c
11
dwm.c
@ -1163,22 +1163,13 @@ clientmessage(XEvent *e)
|
|||||||
if (cme->message_type == netatom[NetWMState]) {
|
if (cme->message_type == netatom[NetWMState]) {
|
||||||
if (cme->data.l[1] == netatom[NetWMFullscreen]
|
if (cme->data.l[1] == netatom[NetWMFullscreen]
|
||||||
|| cme->data.l[2] == netatom[NetWMFullscreen]) {
|
|| cme->data.l[2] == netatom[NetWMFullscreen]) {
|
||||||
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
|
||||||
if (c->fakefullscreen == 1)
|
|
||||||
resizeclient(c, c->x, c->y, c->w, c->h);
|
|
||||||
else
|
|
||||||
setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
|
|
||||||
|| (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */
|
|
||||||
&& !c->isfullscreen
|
|
||||||
)));
|
|
||||||
#else
|
|
||||||
setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
|
setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
|
||||||
|| (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */
|
|| (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */
|
||||||
#if !FAKEFULLSCREEN_PATCH
|
#if !FAKEFULLSCREEN_PATCH
|
||||||
&& !c->isfullscreen
|
&& !c->isfullscreen
|
||||||
#endif // !FAKEFULLSCREEN_PATCH
|
#endif // !FAKEFULLSCREEN_PATCH
|
||||||
)));
|
)));
|
||||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
}
|
||||||
} else if (cme->message_type == netatom[NetActiveWindow]) {
|
} else if (cme->message_type == netatom[NetActiveWindow]) {
|
||||||
#if FOCUSONNETACTIVE_PATCH
|
#if FOCUSONNETACTIVE_PATCH
|
||||||
if (c->tags & c->mon->tagset[c->mon->seltags]) {
|
if (c->tags & c->mon->tagset[c->mon->seltags]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user