mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
view: fix top-layer not showing when there's a minimized full-screen view
This commit is contained in:
parent
d30fbbeafa
commit
097ac44eda
2 changed files with 8 additions and 0 deletions
|
|
@ -233,6 +233,9 @@ desktop_update_top_layer_visiblity(struct server *server)
|
|||
enum lab_view_criteria criteria =
|
||||
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE | LAB_VIEW_CRITERIA_FULLSCREEN;
|
||||
for_each_view(view, &server->views, criteria) {
|
||||
if (view->minimized) {
|
||||
continue;
|
||||
}
|
||||
if (!output_is_usable(view->output)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -648,6 +648,11 @@ view_minimize(struct view *view, bool minimized)
|
|||
struct view *root = view_get_root(view);
|
||||
_minimize(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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue