view: Rename/move workspaces_send_to() to view_move_to_workspace()

This function semantically belongs in view.c since it
modifies `struct view`.

Also a minor formatting fix in view_toggle_always_on_top().
This commit is contained in:
John Lindgren 2022-11-21 13:03:49 -05:00 committed by Consolatis
parent 0e6d99e0ca
commit c67c6691ac
5 changed files with 16 additions and 15 deletions

View file

@ -353,7 +353,7 @@ actions_run(struct view *activator, struct server *server,
char *target_name = action_str_from_arg(arg);
target = workspaces_find(view->workspace, target_name);
if (target) {
workspaces_send_to(view, target);
view_move_to_workspace(view, target);
}
}
break;