diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-07-28 17:18:45 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-07-28 17:18:45 +0200 |
commit | a54cf2ecef2ca83441dccd454c694b92bca42a16 (patch) | |
tree | d793de29a6ceeafba2d0030c64a076d5dfd6ffa8 /event.c | |
parent | 4b9337a01e7f12058ce54ed65d69e64748397498 (diff) | |
download | dwm-a54cf2ecef2ca83441dccd454c694b92bca42a16.tar.gz |
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.c | 6 |
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 */ |