aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authorFrans Skarman <frans.skarman@protonmail.com>2025-01-05 10:38:26 +0000
committerGitHub <noreply@github.com>2025-01-05 13:38:26 +0300
commit89678c7b1e6ebe6ec5411db5a2b99bd6bea63565 (patch)
treeb1c10f6a2d81703a0fbf3de8ab6632fd6f1e2c51 /src/window
parent098c826095cf985c541194498adf9ac6552d46ec (diff)
downloadniri-89678c7b1e6ebe6ec5411db5a2b99bd6bea63565.tar.gz
niri-89678c7b1e6ebe6ec5411db5a2b99bd6bea63565.tar.bz2
niri-89678c7b1e6ebe6ec5411db5a2b99bd6bea63565.zip
Set is-active-in-column to true for unmapped windows (#934)
* Set is-active-in-column to true for unmapped windows * Update wiki/Configuration:-Window-Rules.md --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/window')
-rw-r--r--src/window/mapped.rs2
-rw-r--r--src/window/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs
index 4088bb82..207140c4 100644
--- a/src/window/mapped.rs
+++ b/src/window/mapped.rs
@@ -165,7 +165,7 @@ impl Mapped {
rules,
need_to_recompute_rules: false,
is_focused: false,
- is_active_in_column: false,
+ is_active_in_column: true,
is_floating: false,
block_out_buffer: RefCell::new(SolidColorBuffer::new((0., 0.), [0., 0., 0., 1.])),
animate_next_configure: false,
diff --git a/src/window/mod.rs b/src/window/mod.rs
index 868620f0..c8345aa8 100644
--- a/src/window/mod.rs
+++ b/src/window/mod.rs
@@ -116,7 +116,7 @@ impl<'a> WindowRef<'a> {
pub fn is_active_in_column(self) -> bool {
match self {
- WindowRef::Unmapped(_) => false,
+ WindowRef::Unmapped(_) => true,
WindowRef::Mapped(mapped) => mapped.is_active_in_column(),
}
}