Update top layer visiblity on workspace switch

Fixes: #1158
This commit is contained in:
Consolatis 2023-11-10 23:58:25 +01:00 committed by Johan Malm
parent 98bf316ee6
commit 13d0b14244
5 changed files with 48 additions and 11 deletions

View file

@ -393,6 +393,12 @@ void desktop_arrange_all_views(struct server *server);
void desktop_focus_output(struct output *output);
struct view *desktop_topmost_focusable_view(struct server *server);
/**
* Toggles the (output local) visibility of the layershell top layer
* based on the existence of a fullscreen window on the current workspace.
*/
void desktop_update_top_layer_visiblity(struct server *server);
enum lab_cycle_dir {
LAB_CYCLE_DIR_NONE,
LAB_CYCLE_DIR_FORWARD,

View file

@ -225,8 +225,9 @@ struct xdg_toplevel_view {
enum lab_view_criteria {
LAB_VIEW_CRITERIA_NONE = 0,
LAB_VIEW_CRITERIA_CURRENT_WORKSPACE = 1 << 0,
LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP = 1 << 1,
LAB_VIEW_CRITERIA_NO_SKIP_WINDOW_SWITCHER = 1 << 2,
LAB_VIEW_CRITERIA_FULLSCREEN = 1 << 1,
LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP = 1 << 2,
LAB_VIEW_CRITERIA_NO_SKIP_WINDOW_SWITCHER = 1 << 3,
};
/**