winemac.drv: Add a cursor clipping implementation using -setMouseConfinementRect:.

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

This 10.13+ API is far simpler than the CGEventTap approach, and does not require Accessibility permissions. It is not currently not enabled.

648fcd18828 winemac.drv: Add a cursor clipping implementation using -setMouseConfinementRect:.
dlls/winemac.drv/cocoa_cursorclipping.h | 16 ++++
dlls/winemac.drv/cocoa_cursorclipping.m | 141 ++++++++++++++++++++++++++++++++
2 files changed, 157 insertions(+)

Upstream: source.winehq.org


  • Share