action: add ToggleAlwaysOnBottom

This commit is contained in:
Johan Malm 2023-05-11 22:26:41 +01:00 committed by Johan Malm
parent 78aec7945c
commit 15cd093f2e
7 changed files with 45 additions and 4 deletions

View file

@ -263,6 +263,7 @@ struct server {
/* Tree for all non-layer xdg/xwayland-shell surfaces with always-on-top/below */
struct wlr_scene_tree *view_tree_always_on_top;
struct wlr_scene_tree *view_tree_always_on_bottom;
#if HAVE_XWAYLAND
/* Tree for unmanaged xsurfaces without initialized view (usually popups) */
struct wlr_scene_tree *unmanaged_tree;

View file

@ -171,8 +171,11 @@ void view_maximize(struct view *view, bool maximize,
void view_set_fullscreen(struct view *view, bool fullscreen);
void view_toggle_maximize(struct view *view);
void view_toggle_decorations(struct view *view);
void view_toggle_always_on_top(struct view *view);
bool view_is_always_on_top(struct view *view);
void view_toggle_always_on_top(struct view *view);
void view_toggle_always_on_bottom(struct view *view);
bool view_is_tiled(struct view *view);
bool view_is_floating(struct view *view);
void view_move_to_workspace(struct view *view, struct workspace *workspace);