diff --git a/include/view.h b/include/view.h index 7c4a24d9..77c2a0cb 100644 --- a/include/view.h +++ b/include/view.h @@ -486,7 +486,6 @@ void view_resize_relative(struct view *view, int left, int right, int top, int bottom); void view_move_relative(struct view *view, int x, int y); void view_move(struct view *view, int x, int y); -void view_move_to_cursor(struct view *view); void view_moved(struct view *view); void view_minimize(struct view *view, bool minimized); bool view_compute_centered_position(struct view *view, diff --git a/src/action.c b/src/action.c index 2f956d95..90535112 100644 --- a/src/action.c +++ b/src/action.c @@ -1354,7 +1354,8 @@ run_action(struct view *view, struct server *server, struct action *action, "Action MoveToCursor is deprecated. To ensure your config works in future labwc " "releases, please use "); if (view) { - view_move_to_cursor(view); + view_place_by_policy(view, /* allow_cursor */ true, + LAB_PLACE_CURSOR); } break; case ACTION_TYPE_SEND_TO_DESKTOP: diff --git a/src/view.c b/src/view.c index cb82ab22..ed9f133e 100644 --- a/src/view.c +++ b/src/view.c @@ -625,7 +625,7 @@ view_move_relative(struct view *view, int x, int y) view_move(view, view->pending.x + x, view->pending.y + y); } -void +static void view_move_to_cursor(struct view *view) { assert(view);