null selbar if destroyed bar is selbar
This commit is contained in:
parent
871255529e
commit
0cacd97e00
1 changed files with 3 additions and 0 deletions
3
dam.c
3
dam.c
|
@ -396,6 +396,9 @@ bar_hide(Bar *bar)
|
|||
static void
|
||||
bar_destroy(Bar *bar)
|
||||
{
|
||||
if (bar == selbar)
|
||||
selbar = NULL;
|
||||
|
||||
wl_list_remove(&bar->link);
|
||||
bufpool_cleanup(&bar->pool);
|
||||
if (bar->layout)
|
||||
|
|
Loading…
Add table
Reference in a new issue