aboutsummaryrefslogtreecommitdiff
path: root/src/layout/floating.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-26 09:37:38 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commitdaaee43be387d75c62c7ba63d33b0b8f9ae192c8 (patch)
treed44840951d79e255bcc95300933081b8bb0bd40e /src/layout/floating.rs
parent0d71cb93aff0c639837cec51938a2450f8945bd7 (diff)
downloadniri-daaee43be387d75c62c7ba63d33b0b8f9ae192c8.tar.gz
niri-daaee43be387d75c62c7ba63d33b0b8f9ae192c8.tar.bz2
niri-daaee43be387d75c62c7ba63d33b0b8f9ae192c8.zip
layout: Refactor window opening targets
Diffstat (limited to 'src/layout/floating.rs')
-rw-r--r--src/layout/floating.rs5
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;