Make workspace_move_to_output reusable

Move workspace_move_to_output out of the command handler, so it can be
re-used for ext_workspace_handle_v1::assign.
This commit is contained in:
Hugo Osvaldo Barrera 2026-03-12 06:02:42 +01:00 committed by Simon Ser
parent 131045ce55
commit 7ba11d6dee
3 changed files with 37 additions and 34 deletions

View file

@ -157,4 +157,7 @@ size_t workspace_num_sticky_containers(struct sway_workspace *ws);
*/
void workspace_squash(struct sway_workspace *workspace);
void workspace_move_to_output(struct sway_workspace *workspace,
struct sway_output *output);
#endif