layout: Add clarifying comment
Browse files at this commit859c0be0e5fa5ccf3c59f0ae1764551a930656fdParent: 810ea241 changed file +3 -0
- src/layout/monitor.rs +3 -0
src/layout/monitor.rsmodified+3 -0
| @@ -217,6 +217,9 @@ impl<W: LayoutElement> Monitor<W> { | |||
| 217 | 217 | ||
| 218 | // After adding a new window, workspace becomes this output's own. | 218 | // After adding a new window, workspace becomes this output's own. |
| 219 | workspace.original_output = OutputId::new(&self.output); | 219 | workspace.original_output = OutputId::new(&self.output); |
| 220 | + | ||
| 221 | + // Since we're adding window right of something, the workspace isn't empty, and therefore | ||
| 222 | + // cannot be the last one, so we never need to insert a new empty workspace. | ||
| 220 | } | 223 | } |
| 221 | 224 | ||
| 222 | pub fn add_column(&mut self, workspace_idx: usize, column: Column<W>, activate: bool) { | 225 | pub fn add_column(&mut self, workspace_idx: usize, column: Column<W>, activate: bool) { |