diff options
| author | kerty0 <81302457+kerty0@users.noreply.github.com> | 2025-04-07 15:46:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 14:46:31 +0200 |
| commit | 8a8f394da70e40043d1ba2c193b81867560b2b05 (patch) | |
| tree | 0620c25df4c05a14bc6dc28118396d53fc958160 /src/helpers/AsyncDialogBox.cpp | |
| parent | 51838fb5f5b5b03bca99b324fb1f6494d3854f89 (diff) | |
swipe: fix swiping onto a new workspace bound to another monitor (#8176) (#9927)
The previous code didn't check if the chosen new workspace was bound to another monitor, causing buggy behavior where workspace was simultaneously open and not.
The fix simply uses `r+1` for new workspace selection.
Also, the previous code would select rightmost workspace + 1, creating large gaps in workspace IDs in some scenarios. Example (`()` and `[]` indicate workspaces on different monitors):
`(1), 2, 3, 4, 5, 6, 7, 8, 9, [10]`
Swipe right on `()` monitor would create:
`(1), 2, 3, 4, 5, 6, 7, 8, 9, [10], (11)`
But with this commit:
`(1), (2), 3, 4, 5, 6, 7, 8, 9, [10]`
Diffstat (limited to 'src/helpers/AsyncDialogBox.cpp')
0 files changed, 0 insertions, 0 deletions
