fix: edge case where tags get hidden after all views are killed

This fixes an edge case where focused tags would get hidden if all
clients on a tag get killed
This commit is contained in:
twistedlogic
2024-12-11 22:50:01 -04:00
parent 43af1b9ea0
commit 8024df0430

View File

@ -220,7 +220,7 @@ void Tags::handle_view_tags(struct wl_array *view_tags) {
}
buttons_[i].get_style_context()->add_class("occupied");
} else {
if (hide_vacant) {
if (hide_vacant && !buttons_[i].get_style_context()->has_class("focused")) {
buttons_[i].set_visible(false);
}
buttons_[i].get_style_context()->remove_class("occupied");