diff --git a/titlebar.c b/titlebar.c index 730774a4c..06e83951f 100644 --- a/titlebar.c +++ b/titlebar.c @@ -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,