]> git.mdlowis.com Git - proto/labwc.git/commitdiff
action.c: add SSD margin to MoveTo coordinates
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 4 Feb 2025 20:47:24 +0000 (21:47 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 4 Feb 2025 20:56:40 +0000 (21:56 +0100)
Fixes: #2469
src/action.c

index 86d72d6c3f7a2d2c054c296eb6cbbde9ba4ad0a4..21ce7bfe083304f76a054c49a5077166f0b5704b 100644 (file)
@@ -1084,7 +1084,8 @@ actions_run(struct view *activator, struct server *server,
                        if (view) {
                                int x = action_get_int(action, "x", 0);
                                int y = action_get_int(action, "y", 0);
-                               view_move(view, x, y);
+                               struct border margin = ssd_thickness(view);
+                               view_move(view, x + margin.left, y + margin.top);
                        }
                        break;
                case ACTION_TYPE_RESIZETO: