workspace-management: Implement move_to_workspace request

Needed for `cosmic-workspaces`.
This commit is contained in:
Ian Douglas Scott 2023-12-06 15:13:48 -08:00 committed by Victoria Brekenfeld
parent 75990ff056
commit 656996503c
6 changed files with 92 additions and 43 deletions

View file

@ -65,7 +65,7 @@ fn move_prev_workspace(state: &mut State, mapped: &CosmicMapped) {
if let Some(prev_handle) = maybe_handle {
Shell::move_window(
state,
&seat,
Some(&seat),
mapped,
&current_handle,
&prev_handle,
@ -93,7 +93,7 @@ fn move_next_workspace(state: &mut State, mapped: &CosmicMapped) {
if let Some(next_handle) = maybe_handle {
Shell::move_window(
state,
&seat,
Some(&seat),
mapped,
&current_handle,
&next_handle,