null selbar if destroyed bar is selbar

This commit is contained in:
sewn 2024-10-27 20:06:20 +03:00
parent 871255529e
commit 0cacd97e00
No known key found for this signature in database

3
dam.c
View file

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