From 15f1200f6602a94e81b7e6cd60073abf6caa55df Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Nov 2008 10:02:10 +0100 Subject: [PATCH] titlebar: wipe simplewindow before unrefing wibox (FS#373) Signed-off-by: Julien Danjou --- titlebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titlebar.c b/titlebar.c index f4ee6e82..efc18a15 100644 --- a/titlebar.c +++ b/titlebar.c @@ -171,10 +171,10 @@ titlebar_client_detach(client_t *c) /* If client has a titlebar, kick it out. */ if(c && c->titlebar) { - wibox_unref(&c->titlebar); simplewindow_wipe(&c->titlebar->sw); c->titlebar->type = WIBOX_TYPE_NORMAL; c->titlebar->screen = SCREEN_UNDEF; + wibox_unref(&c->titlebar); c->titlebar = NULL; client_need_arrange(c); client_stack();