titlebar: wipe simplewindow before unrefing wibox (FS#373)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-14 10:02:10 +01:00
parent a042f33964
commit 15f1200f66
1 changed files with 1 additions and 1 deletions

View File

@ -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();