aboutsummaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-07-28 17:18:45 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-07-28 17:18:45 +0200
commita54cf2ecef2ca83441dccd454c694b92bca42a16 (patch)
treed793de29a6ceeafba2d0030c64a076d5dfd6ffa8 /event.c
parent4b9337a01e7f12058ce54ed65d69e64748397498 (diff)
changed ban/unban implementation to not move the windows anymore, but map/unmap them instead - PLEASE TEST THIS
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/event.c b/event.c
index b870821..d0716fa 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 */