titlebar: check for client before drawing
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
92f369e3aa
commit
de0a799fb9
|
@ -78,7 +78,7 @@ titlebar_draw(client_t *c)
|
|||
draw_context_t *ctx;
|
||||
xcb_screen_t *s;
|
||||
|
||||
if(!c->titlebar || !c->titlebar->sw || !c->titlebar->position)
|
||||
if(!c || !c->titlebar || !c->titlebar->sw || !c->titlebar->position)
|
||||
return;
|
||||
|
||||
s = xutil_screen_get(globalconf.connection,
|
||||
|
|
Loading…
Reference in New Issue