From 96d2baa2b55a02dec3476791c6553fe2035d4825 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 26 Jun 2024 09:53:17 +0400 Subject: mapped: Make is_active_in_column private --- src/window/mapped.rs | 6 +++++- src/window/mod.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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, @@ -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(), } } } -- cgit