From de0a799fb9a5cd2cde943fe5e3469c080c09264a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 18 Jun 2008 18:32:09 +0200 Subject: [PATCH] titlebar: check for client before drawing Signed-off-by: Julien Danjou --- titlebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,