fix(wm): adds special case for grid stacks to the right

This commit is contained in:
Javier Portillo
2024-03-01 12:49:18 -06:00
committed by جاد
parent d730c3c72d
commit 4919872e1a

View File

@@ -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