diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout/workspace.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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<W: LayoutElement> Column<W> { // 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 { |
