diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-10-11 11:00:50 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-10-11 11:00:50 +0300 |
| commit | c9c985c9271345ba051332c1d6ef62c583dfb1cb (patch) | |
| tree | f4e97b5154d2d5f1bab5024ef4431b7ffa7f977a /src | |
| parent | 859c0be0e5fa5ccf3c59f0ae1764551a930656fd (diff) | |
| download | niri-c9c985c9271345ba051332c1d6ef62c583dfb1cb.tar.gz niri-c9c985c9271345ba051332c1d6ef62c583dfb1cb.tar.bz2 niri-c9c985c9271345ba051332c1d6ef62c583dfb1cb.zip | |
Support empty column in tile_offsets
Will be needed for the new inserting tile code.
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 { |
