view: fix top-layer not showing when there's a minimized full-screen view

This commit is contained in:
Franz Berger 2024-05-08 00:25:44 +02:00 committed by Consolatis
parent d30fbbeafa
commit 097ac44eda
2 changed files with 8 additions and 0 deletions

View file

@ -233,6 +233,9 @@ desktop_update_top_layer_visiblity(struct server *server)
enum lab_view_criteria criteria = enum lab_view_criteria criteria =
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE | LAB_VIEW_CRITERIA_FULLSCREEN; LAB_VIEW_CRITERIA_CURRENT_WORKSPACE | LAB_VIEW_CRITERIA_FULLSCREEN;
for_each_view(view, &server->views, criteria) { for_each_view(view, &server->views, criteria) {
if (view->minimized) {
continue;
}
if (!output_is_usable(view->output)) { if (!output_is_usable(view->output)) {
continue; continue;
} }

View file

@ -648,6 +648,11 @@ view_minimize(struct view *view, bool minimized)
struct view *root = view_get_root(view); struct view *root = view_get_root(view);
_minimize(root, minimized); _minimize(root, minimized);
minimize_sub_views(root, minimized); minimize_sub_views(root, minimized);
/* Enable top-layer when full-screen views are minimized */
if (view->fullscreen && view->output) {
desktop_update_top_layer_visiblity(view->server);
}
} }
bool bool