Skip to content

Commit

Permalink
fix(wm): adds special case for grid stacks to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
javierportillo authored and LGUG2Z committed Mar 2, 2024
1 parent d730c3c commit 4919872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion komorebi/src/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,9 @@ impl WindowManager {
anyhow!("this is not a valid direction from the current position")
})?;

let adjusted_new_index = if new_idx > current_container_idx {
let adjusted_new_index = if new_idx > current_container_idx
&& !matches!(workspace.layout(), Layout::Default(DefaultLayout::Grid))
{
new_idx - 1
} else {
new_idx
Expand Down

0 comments on commit 4919872

Please sign in to comment.