winemac.drv: Use -setMouseConfinementRect: for cursor clipping by default

System Internals / WINE - Tim Clem [codeweavers.com] - 21 January 2022 21:47 UTC

On macOS 10.13+, use this private NSWindow method for ClipCursor calls. The old behavior can be restored by setting the per-app Mac Driver registry key UseConfinementCursorClipping to N.

599ecd97a8f winemac.drv: Use -setMouseConfinementRect: for cursor clipping by default.
dlls/winemac.drv/cocoa_app.m | 8 ++++++--
dlls/winemac.drv/cocoa_cursorclipping.m | 4 ++++
dlls/winemac.drv/macdrv_cocoa.h | 1 +
dlls/winemac.drv/macdrv_main.c | 4 ++++
4 files changed, 15 insertions(+), 2 deletions(-)

Upstream: source.winehq.org


  • Share