aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/window')
-rw-r--r--src/window/mapped.rs6
-rw-r--r--src/window/mod.rs2
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(),
}
}
}