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/floating.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/layout/floating.rs') diff --git a/src/layout/floating.rs b/src/layout/floating.rs index dac4ed12..3633ad18 100644 --- a/src/layout/floating.rs +++ b/src/layout/floating.rs @@ -428,10 +428,7 @@ impl FloatingSpace { self.bring_up_descendants_of(idx); } - pub fn add_tile_above(&mut self, above: &W::Id, mut tile: Tile) { - // Activate the new window if above was active. - let activate = Some(above) == self.active_window_id.as_ref(); - + pub fn add_tile_above(&mut self, above: &W::Id, mut tile: Tile, activate: bool) { let idx = self.idx_of(above).unwrap(); let above_pos = self.data[idx].logical_pos; -- cgit