From 859c0be0e5fa5ccf3c59f0ae1764551a930656fd Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 10 Oct 2024 10:44:18 +0300 Subject: layout: Add clarifying comment --- src/layout/monitor.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout') 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 Monitor { // 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, activate: bool) { -- cgit