Explorar o código

applied Garys patch in a slightly modified way

garbeam@gmail.com %!s(int64=14) %!d(string=hai) anos
pai
achega
27b0142203
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dwm.c

+ 1 - 1
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;