aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <unknown>2011-08-08 16:55:06 +0000
committer[email protected] <unknown>2011-08-08 16:55:06 +0000
commitdec4850d0586f34f0dc69ed5285afefeefef90ae (patch)
tree9bda8684ba94531e3e4091e36275caac6a4895af
parentapplied Peter Hartlichs nice interim Xinerama and map fix patches, for debugg... (diff)
downloadseiwm-dec4850d0586f34f0dc69ed5285afefeefef90ae.tar.xz
seiwm-dec4850d0586f34f0dc69ed5285afefeefef90ae.zip
applied Connors and Valentins patch to improve the unmapnotify handling of broken clients
-rw-r--r--dwm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index db0fdfb..6909969 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1761,8 +1761,12 @@ unmapnotify(XEvent *e) {
Client *c;
XUnmapEvent *ev = &e->xunmap;
- if((c = wintoclient(ev->window)))
- unmanage(c, False);
+ if((c = wintoclient(ev->window))) {
+ if(ev->send_event)
+ setclientstate(c, WithdrawnState);
+ else
+ unmanage(c, False);
+ }
}
void