]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Deprecate MoveToCursor
authorJohan Malm <jgm323@gmail.com>
Sun, 19 May 2024 15:50:53 +0000 (16:50 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 19 May 2024 17:57:20 +0000 (19:57 +0200)
Use <action name="AutoPlace" policy="cursor"/> instead.

Related-to: #1785
Suggested-by: @tokyo4j
docs/labwc-actions.5.scd
src/action.c

index 097cd5c2811015178ec6caa444f543b32d7af243..703236ef2f2f5d058954b0796fd43a3873e8d722 100644 (file)
@@ -83,6 +83,9 @@ Actions are used in menus and keyboard/mouse bindings.
 *<action name="MoveToCursor" />*
        Move to be centered on cursor.
        Tries to prevent any part of the window from going off-screen.
+       This action is deprecated from v0.7.3. To ensure your config works in
+       future labwc releases, please use:
+       *<action name="AutoPlace" policy="cursor">*
 
 *<action name="MoveRelative" x="" y="" />*
        Move window relative to its current position. Positive value of x moves
index db2b7557ac01e68d3988182827eb8c47cd423338..3ed88d681baf871cf805a1f0a60a341cb301713e 100644 (file)
@@ -904,6 +904,9 @@ actions_run(struct view *activator, struct server *server,
                        }
                        break;
                case ACTION_TYPE_MOVETO_CURSOR:
+                       wlr_log(WLR_ERROR,
+                               "Action MoveToCursor is deprecated. To ensure your config works in future labwc "
+                               "releases, please use <action name=\"AutoPlace\" policy=\"cursor\">");
                        if (view) {
                                view_move_to_cursor(view);
                        }