mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-02 21:24:12 +01:00
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.
This commit is contained in:
1 parent
d5f4f916be
commit
1e63947ae3
1 file changed
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user