mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-20 07:41:25 +02: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:
@@ -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