action.c: add SSD margin to MoveTo coordinates

Fixes: #2469
This commit is contained in:
Consolatis 2025-02-04 21:47:24 +01:00
parent 897799da5a
commit e47f9204b9

View 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: