summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 @@
4#include <stdlib.h> 4#include <stdlib.h>
5#include <X11/keysym.h> 5#include <X11/keysym.h>
6#include <X11/Xatom.h> 6#include <X11/Xatom.h>
7#include <X11/Xutil.h>
7 8
8/* static */ 9/* static */
9 10
@@ -226,7 +227,7 @@ destroynotify(XEvent *e) {
226 XDestroyWindowEvent *ev = &e->xdestroywindow; 227 XDestroyWindowEvent *ev = &e->xdestroywindow;
227 228
228 if((c = getclient(ev->window))) 229 if((c = getclient(ev->window)))
229 unmanage(c); 230 unmanage(c, WithdrawnState);
230} 231}
231 232
232static void 233static void
@@ -338,7 +339,7 @@ unmapnotify(XEvent *e) {
338 339
339 if((c = getclient(ev->window)) && (ev->event == root)) { 340 if((c = getclient(ev->window)) && (ev->event == root)) {
340 if(ev->send_event || c->unmapped-- == 0) 341 if(ev->send_event || c->unmapped-- == 0)
341 unmanage(c); 342 unmanage(c, WithdrawnState);
342 } 343 }
343} 344}
344 345