layout: Update workspace original output
Browse files at this commit99ab96d348b9110b05784f65ed5542b117d2fb04Parent: 51568051 changed file +3 -0
- src/layout.rs +3 -0
src/layout.rsmodified+3 -0
| @@ -794,6 +794,9 @@ impl<W: LayoutElement> Monitor<W> { | ||
| 794 | 794 | |
| 795 | 795 | workspace.add_window(window.clone(), activate); |
| 796 | 796 | |
| 797 | + // After adding a new window, workspace becomes this output's own. | |
| 798 | + workspace.original_output = OutputId::new(&self.output); | |
| 799 | + | |
| 797 | 800 | if workspace_idx == self.workspaces.len() - 1 { |
| 798 | 801 | // Insert a new empty workspace. |
| 799 | 802 | let ws = Workspace::new(self.output.clone()); |