view: make view_move_to_cursor() static

This commit is contained in:
John Lindgren 2026-02-21 12:55:30 -05:00 committed by Hiroaki Yamamoto
parent 3131c71acd
commit d4ca1dfb69
3 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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 <action name=\"AutoPlace\" policy=\"cursor\">");
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:

View file

@ -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);