diff options
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 243730be..38af83d3 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1142,7 +1142,15 @@ impl<W: LayoutElement> Layout<W> { .filter(|move_| next_to == move_.tile.window().id()) .is_some() { - // The next_to window is being interactively moved. + // The next_to window is being interactively moved. If there are no + // other windows, we may have no workspaces at all. + if workspaces.is_empty() { + workspaces.push(Workspace::new_no_outputs( + self.clock.clone(), + self.options.clone(), + )); + } + (0, WorkspaceAddWindowTarget::Auto) } else { let ws_idx = workspaces |
