forge
Explore
Log in

Don't you dare go Hollow

layout: Update workspace original output

Browse files at this commit

99ab96d348b9110b05784f65ed5542b117d2fb04Ivan MolodetskikhParent: 5156805
src/layout.rsmodified+3 -0
@@ -794,6 +794,9 @@ impl<W: LayoutElement> Monitor<W> {
794 794
795 workspace.add_window(window.clone(), activate);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 if workspace_idx == self.workspaces.len() - 1 {800 if workspace_idx == self.workspaces.len() - 1 {
798 // Insert a new empty workspace.801 // Insert a new empty workspace.
799 let ws = Workspace::new(self.output.clone());802 let ws = Workspace::new(self.output.clone());