diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-24 06:45:08 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-24 06:58:21 +0300 |
commit | 4c4e8cc926a672ac60692b3fb8c20249f9cae679 (patch) | |
tree | 5d2bd72dd7a19c592a285033fb14c9538c9c18ff /source/blender/windowmanager/intern/wm_window.c | |
parent | 70648683a2aa97c7d0ebd310d7a2ab564bcd4fed (diff) |
Fix T99021: Walk-mode doesn't work in Wayland
Walk mode implemented it's own grab which relied on WM_cursor_warp
to work (which isn't implemented for wayland).
Resolve this by using WM_cursor_grab_{enable/disable}.
Besides fixing Wayland this removes the need for workarounds:
- Ensure the event received were after the event generated from warping.
- Alternate logic that reset the "center" when using tablets.
- Checking the cursor location was scaled by native-pixels on macOS.
There is a minor change in behavior: on completion the cursor is left
at the location walk-mode began instead of the center of the region.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
0 files changed, 0 insertions, 0 deletions