From 753aef9d78c0f61d16d65d731dea7e65de895950 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 20 Mar 2023 03:31:49 +0100 Subject: [PATCH] Implement action "Lower" --- docs/labwc-actions.5.scd | 3 +++ src/action.c | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/docs/labwc-actions.5.scd b/docs/labwc-actions.5.scd index 164f1540..1acb0b3b 100644 --- a/docs/labwc-actions.5.scd +++ b/docs/labwc-actions.5.scd @@ -29,6 +29,9 @@ Actions are used in menus and keyboard/mouse bindings. ** Restack the current window above other open windows. +** + Restack the current window below other open windows. + ** Iconify (minimize) focused window. diff --git a/src/action.c b/src/action.c index c8b92b6a..f606a924 100644 --- a/src/action.c +++ b/src/action.c @@ -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,