mapped: Make is_active_in_column private
Browse files at this commit96d2baa2b55a02dec3476791c6553fe2035d4825Parent: 5d2754f2 changed files +6 -2
- src/window/mapped.rs +5 -1
- src/window/mod.rs +1 -1
src/window/mapped.rsmodified+5 -1
| @@ -49,7 +49,7 @@ pub struct Mapped { | |||
| 49 | is_focused: bool, | 49 | is_focused: bool, |
| 50 | 50 | ||
| 51 | /// Whether this window is the active window in its column. | 51 | /// Whether this window is the active window in its column. |
| 52 | - pub is_active_in_column: bool, | 52 | + is_active_in_column: bool, |
| 53 | 53 | ||
| 54 | /// Buffer to draw instead of the window when it should be blocked out. | 54 | /// Buffer to draw instead of the window when it should be blocked out. |
| 55 | block_out_buffer: RefCell<SolidColorBuffer>, | 55 | block_out_buffer: RefCell<SolidColorBuffer>, |
| @@ -147,6 +147,10 @@ impl Mapped { | |||
| 147 | self.is_focused | 147 | self.is_focused |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | + pub fn is_active_in_column(&self) -> bool { | ||
| 151 | + self.is_active_in_column | ||
| 152 | + } | ||
| 153 | + | ||
| 150 | pub fn set_is_focused(&mut self, is_focused: bool) { | 154 | pub fn set_is_focused(&mut self, is_focused: bool) { |
| 151 | if self.is_focused == is_focused { | 155 | if self.is_focused == is_focused { |
| 152 | return; | 156 | return; |
src/window/mod.rsmodified+1 -1
| @@ -92,7 +92,7 @@ impl<'a> WindowRef<'a> { | |||
| 92 | pub fn is_active_in_column(self) -> bool { | 92 | pub fn is_active_in_column(self) -> bool { |
| 93 | match self { | 93 | match self { |
| 94 | WindowRef::Unmapped(_) => false, | 94 | WindowRef::Unmapped(_) => false, |
| 95 | - WindowRef::Mapped(mapped) => mapped.is_active_in_column, | 95 | + WindowRef::Mapped(mapped) => mapped.is_active_in_column(), |
| 96 | } | 96 | } |
| 97 | } | 97 | } |
| 98 | } | 98 | } |