From 1e63947ae3d16c7af0da92a65bfd2598a2699174 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 16 May 2024 14:32:01 -0700 Subject: [PATCH] fix(wm): uw-vertical-stack stacking regression This commit fixes a small regression that was introduced with the addition of the Grid layout, where stacking right from index 0 on the UltrawideVerticalStack layout would actually end up stacking to the left. --- komorebi/src/window_manager.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/komorebi/src/window_manager.rs b/komorebi/src/window_manager.rs index 06f43135..04238ca8 100644 --- a/komorebi/src/window_manager.rs +++ b/komorebi/src/window_manager.rs @@ -1558,8 +1558,11 @@ impl WindowManager { })?; let adjusted_new_index = if new_idx > current_container_idx - && !matches!(workspace.layout(), Layout::Default(DefaultLayout::Grid)) - { + && !matches!( + workspace.layout(), + Layout::Default(DefaultLayout::Grid) + | Layout::Default(DefaultLayout::UltrawideVerticalStack) + ) { new_idx - 1 } else { new_idx