From efb0b83aefb5104cf936b3036260864cbbd4cd3a Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Sun, 8 Jan 2012 19:45:23 +0200 Subject: correctly handle invisible windows --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index a3c4336..af648e6 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -686,7 +686,7 @@ void togglepanel() { void unmapnotify(XEvent *e) { client *c = wintoclient(e->xunmap.window); - if (c && e->xunmap.send_event) XDestroyWindow(dis, c->win); + if (c && e->xunmap.send_event) removeclient(c); } void update_current(void) { -- cgit v1.3.1