diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-10-10 10:44:18 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-10-10 10:44:18 +0300 |
| commit | 859c0be0e5fa5ccf3c59f0ae1764551a930656fd (patch) | |
| tree | eae1bad4501720bcb31c33d59b6dc02e46841c5f /src/layout | |
| parent | 810ea245f9d6da11123c87d5c54f990cebd67932 (diff) | |
| download | niri-859c0be0e5fa5ccf3c59f0ae1764551a930656fd.tar.gz niri-859c0be0e5fa5ccf3c59f0ae1764551a930656fd.tar.bz2 niri-859c0be0e5fa5ccf3c59f0ae1764551a930656fd.zip | |
layout: Add clarifying comment
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/monitor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index f5424262..9e2c6e27 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -217,6 +217,9 @@ impl<W: LayoutElement> Monitor<W> { // After adding a new window, workspace becomes this output's own. workspace.original_output = OutputId::new(&self.output); + + // Since we're adding window right of something, the workspace isn't empty, and therefore + // cannot be the last one, so we never need to insert a new empty workspace. } pub fn add_column(&mut self, workspace_idx: usize, column: Column<W>, activate: bool) { |
