[titlebar] Check if titlebar was created before unmaping it

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-27 17:01:57 +01:00
parent 25b22a7cb9
commit 3d33c84e36
1 changed files with 1 additions and 1 deletions

View File

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