mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
applied Garys patch in a slightly modified way
This commit is contained in:
parent
867ba36030
commit
27b0142203
1 changed files with 1 additions and 1 deletions
2
dwm.c
2
dwm.c
|
@ -529,7 +529,7 @@ clientmessage(XEvent *e) {
|
||||||
if(!c)
|
if(!c)
|
||||||
return;
|
return;
|
||||||
if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
|
if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
|
||||||
if(cme->data.l[0]) {
|
if(cme->data.l[0] && !c->isfullscreen) {
|
||||||
XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
|
XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
|
||||||
PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
|
PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
|
||||||
c->isfullscreen = True;
|
c->isfullscreen = True;
|
||||||
|
|
Loading…
Reference in a new issue