diff options
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |