mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-06 04:55:16 +02:00
fix(wm): adds special case for grid stacks to the right
This commit is contained in:
@@ -1450,7 +1450,9 @@ impl WindowManager {
|
|||||||
anyhow!("this is not a valid direction from the current position")
|
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
|
new_idx - 1
|
||||||
} else {
|
} else {
|
||||||
new_idx
|
new_idx
|
||||||
|
|||||||
Reference in New Issue
Block a user