From 4b8e04da041a0cb6b07afe5405bef7e4a61bce5b Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 7 Feb 2024 13:15:20 +0400 Subject: Activate the new right_of window on its workspace This way when a dialog opens on a different workspace, the user will see it right away when they switch to that workspace. --- src/layout/monitor.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/layout/monitor.rs') diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index f5da804a..383ff965 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -130,7 +130,6 @@ impl Monitor { &mut self, right_of: &W, window: W, - activate: bool, width: ColumnWidth, is_full_width: bool, ) { @@ -141,14 +140,10 @@ impl Monitor { .unwrap(); let workspace = &mut self.workspaces[workspace_idx]; - workspace.add_window_right_of(right_of, window, activate, width, is_full_width); + workspace.add_window_right_of(right_of, window, width, is_full_width); // After adding a new window, workspace becomes this output's own. workspace.original_output = OutputId::new(&self.output); - - if activate { - self.activate_workspace(workspace_idx); - } } pub fn add_column(&mut self, workspace_idx: usize, column: Column, activate: bool) { -- cgit