From 96bf37b98daec1ec42a5b958a469bf569d800f01 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 10 Nov 2023 12:46:09 -0800 Subject: [PATCH] fix(config): disable tiling for ws without layouts This commit ensures that when a layout or a custom layout is not defined for a workspace in the static configuration file, Workspace.tile will be set to false. Thanks to M. Kichel on Discord for pointing out the need for this! --- komorebi/src/workspace.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/komorebi/src/workspace.rs b/komorebi/src/workspace.rs index c3d81184d..6c4e68d46 100644 --- a/komorebi/src/workspace.rs +++ b/komorebi/src/workspace.rs @@ -104,11 +104,17 @@ impl Workspace { if let Some(layout) = &config.layout { self.layout = Layout::Default(*layout); + self.tile = true; } if let Some(pathbuf) = &config.custom_layout { let layout = CustomLayout::from_path_buf(pathbuf.clone())?; self.layout = Layout::Custom(layout); + self.tile = true; + } + + if config.custom_layout.is_none() && config.layout.is_none() { + self.tile = false; } if let Some(layout_rules) = &config.layout_rules {