summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarbeam@gmail.com <unknown>2011-07-02 11:02:22 +0200
committergarbeam@gmail.com <unknown>2011-07-02 11:02:22 +0200
commit27b0142203e06bdbb1ff3c2179ac88e08aa4295e (patch)
treeb9144ed8ffda325cfabcdce88e0fbcc5058fee9a
parent867ba360300682859ab963222ec0a3f42586ff54 (diff)
applied Garys patch in a slightly modified way
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index f842b41..ba00afe 100644
--- a/dwm.c
+++ b/dwm.c
@@ -529,7 +529,7 @@ clientmessage(XEvent *e) {
if(!c)
return;
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,
PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
c->isfullscreen = True;