titlebar: wipe simplewindow before unrefing wibox (FS#373)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a042f33964
commit
15f1200f66
|
@ -171,10 +171,10 @@ titlebar_client_detach(client_t *c)
|
||||||
/* If client has a titlebar, kick it out. */
|
/* If client has a titlebar, kick it out. */
|
||||||
if(c && c->titlebar)
|
if(c && c->titlebar)
|
||||||
{
|
{
|
||||||
wibox_unref(&c->titlebar);
|
|
||||||
simplewindow_wipe(&c->titlebar->sw);
|
simplewindow_wipe(&c->titlebar->sw);
|
||||||
c->titlebar->type = WIBOX_TYPE_NORMAL;
|
c->titlebar->type = WIBOX_TYPE_NORMAL;
|
||||||
c->titlebar->screen = SCREEN_UNDEF;
|
c->titlebar->screen = SCREEN_UNDEF;
|
||||||
|
wibox_unref(&c->titlebar);
|
||||||
c->titlebar = NULL;
|
c->titlebar = NULL;
|
||||||
client_need_arrange(c);
|
client_need_arrange(c);
|
||||||
client_stack();
|
client_stack();
|
||||||
|
|
Loading…
Reference in New Issue