aboutsummaryrefslogtreecommitdiff
path: root/src/layout/scrolling.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/scrolling.rs
parent0d71cb93aff0c639837cec51938a2450f8945bd7 (diff)
downloadniri-daaee43be387d75c62c7ba63d33b0b8f9ae192c8.tar.gz
niri-daaee43be387d75c62c7ba63d33b0b8f9ae192c8.tar.bz2
niri-daaee43be387d75c62c7ba63d33b0b8f9ae192c8.zip
layout: Refactor window opening targets
Diffstat (limited to 'src/layout/scrolling.rs')
-rw-r--r--src/layout/scrolling.rs4
1 files changed, 1 insertions, 3 deletions
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<W: LayoutElement> ScrollingSpace<W> {
&mut self,
right_of: &W::Id,
tile: Tile<W>,
+ activate: bool,
width: ColumnWidth,
is_full_width: bool,
) {
@@ -793,9 +794,6 @@ impl<W: LayoutElement> ScrollingSpace<W> {
.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);
}