From a54cf2ecef2ca83441dccd454c694b92bca42a16 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sat, 28 Jul 2007 17:18:45 +0200 Subject: changed ban/unban implementation to not move the windows anymore, but map/unmap them instead - PLEASE TEST THIS --- event.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index b8708212..d0716fa8 100644 --- 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 */ -- cgit v1.2.3