From 10d13f01ff764ba0e875adf5d2b83c49aa08d148 Mon Sep 17 00:00:00 2001 From: Anselm R. Garbe Date: Wed, 15 Aug 2007 19:27:32 +0200 Subject: fififi --- event.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index 4bedf18..b8a16a7 100644 --- a/event.c +++ b/event.c @@ -4,6 +4,7 @@ #include #include #include +#include /* 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); } } -- cgit v1.2.3