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

@ -133,6 +133,7 @@ void view_set_fullscreen(struct view *view, bool fullscreen,
void view_toggle_maximize(struct view *view);
void view_toggle_decorations(struct view *view);
void view_toggle_always_on_top(struct view *view);
void view_move_to_workspace(struct view *view, struct workspace *workspace);
void view_set_decorations(struct view *view, bool decorations);
void view_toggle_fullscreen(struct view *view);
void view_adjust_for_layout_change(struct view *view);

View file

@ -21,7 +21,6 @@ struct workspace {
void workspaces_init(struct server *server);
void workspaces_switch_to(struct workspace *target);
void workspaces_send_to(struct view *view, struct workspace *target);
void workspaces_destroy(struct server *server);
void workspaces_osd_hide(struct seat *seat);
struct workspace *workspaces_find(struct workspace *anchor, const char *name);