aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-08 19:45:23 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-08 19:45:23 +0200
commitefb0b83aefb5104cf936b3036260864cbbd4cd3a (patch)
tree2d5b579364b9959460baef36d21056d008882cd1 /monsterwm.c
parent04de6af22273a3952f6db8331e87326c76efcfda (diff)
correctly handle invisible windows
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
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) {