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.
This commit is contained in:
parent
64a9c1badf
commit
b8ffc89948
1 changed files with 5 additions and 0 deletions
|
|
@ -884,6 +884,11 @@ impl Workspaces {
|
||||||
handle: &WorkspaceHandle,
|
handle: &WorkspaceHandle,
|
||||||
workspace_state: &mut WorkspaceUpdateGuard<'_, State>,
|
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 {
|
if !self.sets.contains_key(to) || from == to {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue