From c9c985c9271345ba051332c1d6ef62c583dfb1cb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 11 Oct 2024 11:00:50 +0300 Subject: Support empty column in tile_offsets Will be needed for the new inserting tile code. --- src/layout/workspace.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 2003b21b..034aaf0a 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -3724,7 +3724,11 @@ impl Column { // the workspace or some other reason. let center = self.options.center_focused_column == CenterFocusedColumn::Always; let gaps = self.options.gaps; - let col_width = self.width(); + let col_width = if self.tiles.is_empty() { + 0. + } else { + self.width() + }; let mut y = 0.; if !self.is_fullscreen { -- cgit