Hyprland/src
Andrew Pritchard dfb78e0593
Fix swiping onto a new workspace with multiple monitors. (#1971)
The previous code could run into issues into the following circumstances:

* The focused monitor is on its rightmost workspace with ID `i`.
* Another monitor has a workspace with ID `i+1`.
* `workspace_swipe_create_new` is enabled.

Then, swiping rightwards attempts to target a new workspace with ID
`i+1`: completing the swipe gesture unintentionally focuses that
workspace on whichever monitor it's already on while leaving the active
monitor in a broken state where it shows no windows but creates new
windows on the workspace it was previously on; and cancelling the swipe
gesture shifts the entire workspace `i+1` to the right by the width of
the active monitor.

By choosing an ID that doesn't exist, this problematic behavior is
avoided.  More specifically, it's the smallest ID greater than any
existing workspace's ID, because otherwise the new workspace that was
seemingly just created to the right of the rightmost workspace could end
up somewhere in the middle of the workspace order.
2023-04-07 12:18:53 +01:00
..
config debug: allow manual crash from hyprctl 2023-04-04 22:13:36 +01:00
debug internal: rename ensureDPMS to ensureMonitorStatus 2023-04-03 22:52:09 +01:00
events Feat: add initial class/title to hyprctl clients 2023-04-03 19:16:51 +01:00
helpers internal: migrate to damage_ring 2023-04-07 12:18:40 +01:00
hyprerror Draw HyprError on the last monitor 2023-02-28 19:18:13 +00:00
init disallow running with sudo 2022-05-19 19:28:15 +02:00
layout internal: make togglefloat better visible on small size deltas 2023-04-06 19:45:59 +01:00
managers Fix swiping onto a new workspace with multiple monitors. (#1971) 2023-04-07 12:18:53 +01:00
plugins Misc FreeBSD fixes (#1926) 2023-03-31 20:39:04 +01:00
protocols screencopy: fix incorrect resource error post 2023-04-05 15:19:49 +01:00
render internal: migrate to damage_ring 2023-04-07 12:18:40 +01:00
wlrunstable ext_workspace_unstable: send done after output_enter when wl_output is bound late (#1481) 2023-02-03 21:25:49 +00:00
Compositor.cpp internal: don't remove x11 children on parent remove 2023-04-06 20:59:44 +01:00
Compositor.hpp core: remove old redundant shutdown stuff 2023-03-23 03:07:57 +00:00
defines.hpp Plugin System (#1590) 2023-02-27 12:32:38 +00:00
includes.hpp fix compile for single_pixel_buffer_v1 2023-02-16 13:37:46 +00:00
main.cpp core: remove old redundant shutdown stuff 2023-03-23 03:07:57 +00:00
meson.build meson: add pango deps 2023-03-20 15:39:43 +00:00
SharedDefs.hpp notifs: add ICON_OK to icons 2023-03-20 15:49:46 +00:00
Window.cpp swallow: move swallowed on workspace change 2023-04-02 10:24:17 +01:00
Window.hpp Feat: add initial class/title to hyprctl clients 2023-04-03 19:16:51 +01:00