Skip to content

Commit

Permalink
fix(wm): uw-vertical-stack stacking regression
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LGUG2Z committed May 16, 2024
1 parent d5f4f91 commit 1e63947
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions komorebi/src/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e63947

Please sign in to comment.