diff --git a/client.c b/client.c index 02ae3c80..07865ae1 100644 --- a/client.c +++ b/client.c @@ -171,7 +171,7 @@ client_ban(Client *c) client_unfocus(c); XUnmapWindow(globalconf.display, c->win); window_setstate(c->win, IconicState); - if(c->titlebar.position) + if(c->titlebar.position && c->titlebar.sw) XUnmapWindow(globalconf.display, c->titlebar.sw->window); }