From daaee43be387d75c62c7ba63d33b0b8f9ae192c8 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 26 Dec 2024 09:37:38 +0300 Subject: layout: Refactor window opening targets --- src/layout/scrolling.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/layout/scrolling.rs') diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index b7b7b84a..5b13d0c6 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -783,6 +783,7 @@ impl ScrollingSpace { &mut self, right_of: &W::Id, tile: Tile, + activate: bool, width: ColumnWidth, is_full_width: bool, ) { @@ -793,9 +794,6 @@ impl ScrollingSpace { .unwrap(); let col_idx = right_of_idx + 1; - // Activate the new window if right_of was active. - let activate = self.active_column_idx == right_of_idx; - self.add_tile(Some(col_idx), tile, activate, width, is_full_width, None); } -- cgit