mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
action: add ToggleAlwaysOnBottom
This commit is contained in:
parent
78aec7945c
commit
15cd093f2e
7 changed files with 45 additions and 4 deletions
|
|
@ -61,6 +61,7 @@ enum action_type {
|
|||
ACTION_TYPE_TOGGLE_FULLSCREEN,
|
||||
ACTION_TYPE_TOGGLE_DECORATIONS,
|
||||
ACTION_TYPE_TOGGLE_ALWAYS_ON_TOP,
|
||||
ACTION_TYPE_TOGGLE_ALWAYS_ON_BOTTOM,
|
||||
ACTION_TYPE_FOCUS,
|
||||
ACTION_TYPE_ICONIFY,
|
||||
ACTION_TYPE_MOVE,
|
||||
|
|
@ -93,6 +94,7 @@ const char *action_names[] = {
|
|||
"ToggleFullscreen",
|
||||
"ToggleDecorations",
|
||||
"ToggleAlwaysOnTop",
|
||||
"ToggleAlwaysOnBottom",
|
||||
"Focus",
|
||||
"Iconify",
|
||||
"Move",
|
||||
|
|
@ -519,6 +521,11 @@ actions_run(struct view *activator, struct server *server,
|
|||
view_toggle_always_on_top(view);
|
||||
}
|
||||
break;
|
||||
case ACTION_TYPE_TOGGLE_ALWAYS_ON_BOTTOM:
|
||||
if (view) {
|
||||
view_toggle_always_on_bottom(view);
|
||||
}
|
||||
break;
|
||||
case ACTION_TYPE_FOCUS:
|
||||
if (view) {
|
||||
desktop_focus_and_activate_view(&server->seat, view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue