diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-09-20 12:57:41 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-10-02 09:33:08 +0300 |
| commit | 1fa9dd32ed028c88248644a13421c098fef72894 (patch) | |
| tree | e6ea60b5b0b7ebc390ecc623b091bbe3dc40fdf0 /src/layout/scrolling.rs | |
| parent | 2781d3a74338806f631acda99e9f702b1b59a3e6 (diff) | |
| download | niri-1fa9dd32ed028c88248644a13421c098fef72894.tar.gz niri-1fa9dd32ed028c88248644a13421c098fef72894.tar.bz2 niri-1fa9dd32ed028c88248644a13421c098fef72894.zip | |
config: Split Layout from LayoutPart
Diffstat (limited to 'src/layout/scrolling.rs')
| -rw-r--r-- | src/layout/scrolling.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 5f53ccee..52869024 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -488,7 +488,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { let size = match resolve_preset_size(size, &self.options, working_size.w, extra.w) { ResolvedSize::Tile(mut size) => { if !border.off { - size -= border.width.0 * 2.; + size -= border.width * 2.; } size } @@ -502,14 +502,14 @@ impl<W: LayoutElement> ScrollingSpace<W> { let mut full_height = self.working_area.size.h - self.options.gaps * 2.; if !border.off { - full_height -= border.width.0 * 2.; + full_height -= border.width * 2.; } let height = if let Some(height) = height { let height = match resolve_preset_size(height, &self.options, working_size.h, extra.h) { ResolvedSize::Tile(mut size) => { if !border.off { - size -= border.width.0 * 2.; + size -= border.width * 2.; } size } @@ -5280,7 +5280,7 @@ fn compute_toplevel_bounds( ) -> Size<i32, Logical> { let mut border = 0.; if !border_config.off { - border = border_config.width.0 * 2.; + border = border_config.width * 2.; } Size::from(( |
