mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Support empty column in tile_offsets
Will be needed for the new inserting tile code.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user