From b8ffc899483e181d857b2753e7e0e3a2eb81d812 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 18 Sep 2025 10:03:48 -0700 Subject: [PATCH] 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. --- src/shell/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 83dd1d23..1d313cf5 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -884,6 +884,11 @@ impl Workspaces { handle: &WorkspaceHandle, workspace_state: &mut WorkspaceUpdateGuard<'_, State>, ) { + // If workspaces span across outputs, they can't be moved to a different output + if self.mode == WorkspaceMode::Global { + return; + } + if !self.sets.contains_key(to) || from == to { return; }