Commit dec4850

garbeam@gmail.com <unknown>
2011-08-08 12:55:06
applied Connors and Valentins patch to improve the unmapnotify handling of broken clients
1 parent 0de4197
Changed files (1)
dwm.c
@@ -1761,8 +1761,12 @@ unmapnotify(XEvent *e) {
 	Client *c;
 	XUnmapEvent *ev = &e->xunmap;
 
-	if((c = wintoclient(ev->window)))
-		unmanage(c, False);
+	if((c = wintoclient(ev->window))) {
+		if(ev->send_event)
+			setclientstate(c, WithdrawnState);
+		else
+			unmanage(c, False);
+	}
 }
 
 void