winemac: Disable moving or resizing windows when cursor clipping is in effect.

Ken Thomases ken at codeweavers.com
Mon Apr 28 15:09:28 CDT 2014


Many games clip the cursor to the client area of the window.  However, on OS X,
the resizing controls extend into that client area.  So, it's possible that
while playing, the user might unintentionally click in the resizing area and
drag, resizing the window.

This commit makes it so that, while cursor clipping is in effect, the Mac
driver makes all of its windows non-resizable and non-movable.

This can be disabled by setting CursorClippingLocksWindows=n in the Mac driver's
registry key.
---
dlls/winemac.drv/cocoa_app.h    |  2 ++
dlls/winemac.drv/cocoa_app.m    | 14 ++++++++++++++
dlls/winemac.drv/cocoa_window.h |  2 ++
dlls/winemac.drv/cocoa_window.m | 19 ++++++++++++++++---
dlls/winemac.drv/macdrv_cocoa.h |  1 +
dlls/winemac.drv/macdrv_main.c  |  4 ++++
6 files changed, 39 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Disable-moving-or-resizing-windows-when-curs.patch
Type: text/x-patch
Size: 5325 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140428/0ee52da5/attachment.bin>


More information about the wine-patches mailing list