forge
Explore
Log in

Don't you dare go Hollow

mapped: Make is_active_in_column private

Browse files at this commit

96d2baa2b55a02dec3476791c6553fe2035d4825Ivan MolodetskikhParent: 5d2754f
src/window/mapped.rsmodified+5 -1
@@ -49,7 +49,7 @@ pub struct Mapped {
4949 is_focused: bool,
5050
5151 /// Whether this window is the active window in its column.
52- pub is_active_in_column: bool,
52+ is_active_in_column: bool,
5353
5454 /// Buffer to draw instead of the window when it should be blocked out.
5555 block_out_buffer: RefCell<SolidColorBuffer>,
@@ -147,6 +147,10 @@ impl Mapped {
147147 self.is_focused
148148 }
149149
150+ pub fn is_active_in_column(&self) -> bool {
151+ self.is_active_in_column
152+ }
153+
150154 pub fn set_is_focused(&mut self, is_focused: bool) {
151155 if self.is_focused == is_focused {
152156 return;
src/window/mod.rsmodified+1 -1
@@ -92,7 +92,7 @@ impl<'a> WindowRef<'a> {
9292 pub fn is_active_in_column(self) -> bool {
9393 match self {
9494 WindowRef::Unmapped(_) => false,
95- WindowRef::Mapped(mapped) => mapped.is_active_in_column,
95+ WindowRef::Mapped(mapped) => mapped.is_active_in_column(),
9696 }
9797 }
9898 }