diff options
Diffstat (limited to 'src/layout/floating.rs')
| -rw-r--r-- | src/layout/floating.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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<W: LayoutElement> FloatingSpace<W> { self.bring_up_descendants_of(idx); } - pub fn add_tile_above(&mut self, above: &W::Id, mut tile: Tile<W>) { - // 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<W>, activate: bool) { let idx = self.idx_of(above).unwrap(); let above_pos = self.data[idx].logical_pos; |
