aboutsummaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe2007-08-15 19:27:32 +0200
committerAnselm R. Garbe2007-08-15 19:27:32 +0200
commit10d13f01ff764ba0e875adf5d2b83c49aa08d148 (patch)
treecad3a1162879cdf53d3a6ac7f97a025d4a65ff40 /event.c
parent8fcc4ff0ae2b20f9605370cee02ebcda50f8777c (diff)
fififi
Diffstat (limited to 'event.c')
-rw-r--r--event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/event.c b/event.c
index 4bedf18..b8a16a7 100644
--- a/event.c
+++ b/event.c
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
+#include <X11/Xutil.h>
/* static */
@@ -226,7 +227,7 @@ destroynotify(XEvent *e) {
XDestroyWindowEvent *ev = &e->xdestroywindow;
if((c = getclient(ev->window)))
- unmanage(c);
+ unmanage(c, WithdrawnState);
}
static void
@@ -338,7 +339,7 @@ unmapnotify(XEvent *e) {
if((c = getclient(ev->window)) && (ev->event == root)) {
if(ev->send_event || c->unmapped-- == 0)
- unmanage(c);
+ unmanage(c, WithdrawnState);
}
}