Implement action "Lower"

This commit is contained in:
Juliusz Chroboczek 2023-03-20 03:31:49 +01:00 committed by Johan Malm
parent a6896e6978
commit 753aef9d78
2 changed files with 10 additions and 0 deletions

View file

@ -29,6 +29,9 @@ Actions are used in menus and keyboard/mouse bindings.
*<action name="Raise">*
Restack the current window above other open windows.
*<action name="Lower">*
Restack the current window below other open windows.
*<action name="Iconify">*
Iconify (minimize) focused window.

View file

@ -63,6 +63,7 @@ enum action_type {
ACTION_TYPE_ICONIFY,
ACTION_TYPE_MOVE,
ACTION_TYPE_RAISE,
ACTION_TYPE_LOWER,
ACTION_TYPE_RESIZE,
ACTION_TYPE_GO_TO_DESKTOP,
ACTION_TYPE_SEND_TO_DESKTOP,
@ -93,6 +94,7 @@ const char *action_names[] = {
"Iconify",
"Move",
"Raise",
"Lower",
"Resize",
"GoToDesktop",
"SendToDesktop",
@ -440,6 +442,11 @@ actions_run(struct view *activator, struct server *server,
desktop_move_to_front(view);
}
break;
case ACTION_TYPE_LOWER:
if (view) {
desktop_move_to_back(view);
}
break;
case ACTION_TYPE_RESIZE:
if (view) {
interactive_begin(view, LAB_INPUT_STATE_RESIZE,