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

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