]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Implement action "Lower"
authorJuliusz Chroboczek <jch@irif.fr>
Mon, 20 Mar 2023 02:31:49 +0000 (03:31 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 27 Mar 2023 19:27:00 +0000 (20:27 +0100)
docs/labwc-actions.5.scd
src/action.c

index 164f1540a9220bf2141123e3c638f5257b37e61f..1acb0b3bcfeae295e10d1153765489deef3235c8 100644 (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.
 
index c8b92b6a92dcbae441333469139fa26425cea831..f606a92439876c46284d8cb23dd39fac5aa83fa9 100644 (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,