mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #694] [MERGED] fix(wm): adds special case for grid stacks to the right #1060
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/694
Author: @javierportillo
Created: 3/1/2024
Status: ✅ Merged
Merged: 3/2/2024
Merged by: @LGUG2Z
Base:
master← Head:fix/wrong-stack-behaviour-grid📝 Commits (1)
c5c4651fix(wm): adds special case for grid stacks to the right📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
komorebi/src/window_manager.rs(+3 -1)📄 Description
The default stacking behaviour for all layouts was to subtract 1 to the calculated index for movements to the right or down, basically, for any movement where the new index is greater than the current one. This was not working correctly for the Grid layout.
This PR adds a special case that prevents the adjustment to the target container index so it behaves correctly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.