mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
config: Split Layout from LayoutPart
This commit is contained in:
@@ -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((
|
||||
|
||||
Reference in New Issue
Block a user