JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
changed ban/unban implementation to not move the windows anymore, but map/unmap them...
[dwm.git] / event.c
diff --git a/event.c b/event.c
index b870821..d0716fa 100644 (file)
--- a/event.c
+++ b/event.c
@@ -336,8 +336,10 @@ unmapnotify(XEvent *e) {
        Client *c;
        XUnmapEvent *ev = &e->xunmap;
 
-       if((c = getclient(ev->window)))
-               unmanage(c);
+       if((c = getclient(ev->window)) && (ev->event == root)) {
+               if(ev->send_event || c->unmapped-- == 0)
+                       unmanage(c);
+       }
 }
 
 /* extern */