aboutsummaryrefslogtreecommitdiff
path: root/src/window/mapped.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-06-26 09:53:17 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-06-28 10:39:35 +0400
commit96d2baa2b55a02dec3476791c6553fe2035d4825 (patch)
tree1bbbd2e2bca5a5b580f70675f0efdf8acbcc01ff /src/window/mapped.rs
parent5d2754f8316ffef21dd06f580b2b6e1b155df435 (diff)
downloadniri-96d2baa2b55a02dec3476791c6553fe2035d4825.tar.gz
niri-96d2baa2b55a02dec3476791c6553fe2035d4825.tar.bz2
niri-96d2baa2b55a02dec3476791c6553fe2035d4825.zip
mapped: Make is_active_in_column private
Diffstat (limited to 'src/window/mapped.rs')
-rw-r--r--src/window/mapped.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs
index ae5204ea..59a71044 100644
--- a/src/window/mapped.rs
+++ b/src/window/mapped.rs
@@ -49,7 +49,7 @@ pub struct Mapped {
is_focused: bool,
/// Whether this window is the active window in its column.
- pub is_active_in_column: bool,
+ is_active_in_column: bool,
/// Buffer to draw instead of the window when it should be blocked out.
block_out_buffer: RefCell<SolidColorBuffer>,
@@ -147,6 +147,10 @@ impl Mapped {
self.is_focused
}
+ pub fn is_active_in_column(&self) -> bool {
+ self.is_active_in_column
+ }
+
pub fn set_is_focused(&mut self, is_focused: bool) {
if self.is_focused == is_focused {
return;