[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.)

This commit is contained in:
Martin Duquesnoy 2008-09-17 16:37:10 +02:00
parent eb1e708346
commit 126d3eaef9

4
wmfs.c
View File

@ -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);