c5c4651 fix(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.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/694
**Author:** [@javierportillo](https://github.com/javierportillo)
**Created:** 3/1/2024
**Status:** ✅ Merged
**Merged:** 3/2/2024
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `fix/wrong-stack-behaviour-grid`
---
### 📝 Commits (1)
- [`c5c4651`](https://github.com/LGUG2Z/komorebi/commit/c5c465116d74cf82c068670f3987859fa00c0581) fix(wm): adds special case for grid stacks to the right
### 📊 Changes
**1 file changed** (+3 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `komorebi/src/window_manager.rs` (+3 -1)
</details>
### 📄 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.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.