From 126d3eaef9d099e46cced96a6c74e6a24e357c0e Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Wed, 17 Sep 2008 16:37:10 +0200 Subject: [PATCH] [wmfs.c,.h] Fix bug/segfault (when you switched into the tags, and close a clients, you could close an hidden client, and make a segfault if you return on the hidden client tag.) --- wmfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmfs.c b/wmfs.c index b31138f..414828b 100644 --- a/wmfs.c +++ b/wmfs.c @@ -1060,9 +1060,9 @@ unmanage(Client *c) sel = (sel == c) ? c->next : NULL; if(conf.ttbarheight) { - XUnmapWindow(dpy, c->tbar); + // XUnmapWindow(dpy, c->tbar); XDestroyWindow(dpy, c->tbar); - XUnmapWindow(dpy, c->button); + // XUnmapWindow(dpy, c->button); XDestroyWindow(dpy, c->button); } detach(c);