titlebar: check for client before drawing

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-18 18:32:09 +02:00
parent 92f369e3aa
commit de0a799fb9
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ titlebar_draw(client_t *c)
draw_context_t *ctx; draw_context_t *ctx;
xcb_screen_t *s; xcb_screen_t *s;
if(!c->titlebar || !c->titlebar->sw || !c->titlebar->position) if(!c || !c->titlebar || !c->titlebar->sw || !c->titlebar->position)
return; return;
s = xutil_screen_get(globalconf.connection, s = xutil_screen_get(globalconf.connection,