diff options
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout.rs b/src/layout.rs index e938ff86..542c43b4 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -794,6 +794,9 @@ impl<W: LayoutElement> Monitor<W> { workspace.add_window(window.clone(), activate); + // After adding a new window, workspace becomes this output's own. + workspace.original_output = OutputId::new(&self.output); + if workspace_idx == self.workspaces.len() - 1 { // Insert a new empty workspace. let ws = Workspace::new(self.output.clone()); |
