summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index b4f068c..0dbf99a 100644
--- a/xevents.c
+++ b/xevents.c
@@ -70,7 +70,7 @@ xev_handle_unmapnotify(struct xevent *xev, XEvent *ee)
 	struct client_ctx *cc;
 
 	if ((cc = client_find(e->window)) != NULL)
-		xu_setstate(cc, WithdrawnState);
+		client_delete(cc, e->send_event, 0);
 
 	xev_register(xev);
 }