[titlebar] Check if titlebar was created before unmaping it
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
25b22a7cb9
commit
3d33c84e36
2
client.c
2
client.c
|
@ -171,7 +171,7 @@ client_ban(Client *c)
|
||||||
client_unfocus(c);
|
client_unfocus(c);
|
||||||
XUnmapWindow(globalconf.display, c->win);
|
XUnmapWindow(globalconf.display, c->win);
|
||||||
window_setstate(c->win, IconicState);
|
window_setstate(c->win, IconicState);
|
||||||
if(c->titlebar.position)
|
if(c->titlebar.position && c->titlebar.sw)
|
||||||
XUnmapWindow(globalconf.display, c->titlebar.sw->window);
|
XUnmapWindow(globalconf.display, c->titlebar.sw->window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue