diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-26 09:53:17 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-28 10:39:35 +0400 |
| commit | 96d2baa2b55a02dec3476791c6553fe2035d4825 (patch) | |
| tree | 1bbbd2e2bca5a5b580f70675f0efdf8acbcc01ff /src/window | |
| parent | 5d2754f8316ffef21dd06f580b2b6e1b155df435 (diff) | |
| download | niri-96d2baa2b55a02dec3476791c6553fe2035d4825.tar.gz niri-96d2baa2b55a02dec3476791c6553fe2035d4825.tar.bz2 niri-96d2baa2b55a02dec3476791c6553fe2035d4825.zip | |
mapped: Make is_active_in_column private
Diffstat (limited to 'src/window')
| -rw-r--r-- | src/window/mapped.rs | 6 | ||||
| -rw-r--r-- | src/window/mod.rs | 2 |
2 files changed, 6 insertions, 2 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; diff --git a/src/window/mod.rs b/src/window/mod.rs index 9bdbd887..0e0774fd 100644 --- a/src/window/mod.rs +++ b/src/window/mod.rs @@ -92,7 +92,7 @@ impl<'a> WindowRef<'a> { pub fn is_active_in_column(self) -> bool { match self { WindowRef::Unmapped(_) => false, - WindowRef::Mapped(mapped) => mapped.is_active_in_column, + WindowRef::Mapped(mapped) => mapped.is_active_in_column(), } } } |
