From a0e2a15c60162e4f0a589fb5f0ce0899bce213b5 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 31 Jan 2025 19:24:26 +0300 Subject: Take border into account for fixed preset-column-width for tiled windows --- src/layout/workspace.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/layout/workspace.rs') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 4426c264..c4cad666 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -713,9 +713,9 @@ impl Workspace { pub fn resolve_default_width( &self, - default_width: Option>, + default_width: Option>, is_floating: bool, - ) -> Option { + ) -> Option { match default_width { Some(Some(width)) => Some(width), Some(None) => None, @@ -740,7 +740,7 @@ impl Workspace { pub fn new_window_size( &self, - width: Option, + width: Option, height: Option, is_floating: bool, rules: &ResolvedWindowRules, @@ -772,7 +772,7 @@ impl Workspace { pub fn configure_new_window( &self, window: &Window, - width: Option, + width: Option, height: Option, is_floating: bool, rules: &ResolvedWindowRules, -- cgit