Skip to content

Commit b8ffc89

Browse files
ids1024Drakulix
authored andcommitted
shell: Make migrate_workspace() a no-op on global workspace mode
Doing nothing may be a bit confusing, but `MigrateWorkspaceToOutput` isn't bound by default anyway.
1 parent 64a9c1b commit b8ffc89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shell/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,11 @@ impl Workspaces {
884884
handle: &WorkspaceHandle,
885885
workspace_state: &mut WorkspaceUpdateGuard<'_, State>,
886886
) {
887+
// If workspaces span across outputs, they can't be moved to a different output
888+
if self.mode == WorkspaceMode::Global {
889+
return;
890+
}
891+
887892
if !self.sets.contains_key(to) || from == to {
888893
return;
889894
}

0 commit comments

Comments
 (0)