winemac: Use NSMouseInRect() instead of NSPointInRect() to compensate for Cocoa's off-by-one coordinate system.

Ken Thomases ken at codeweavers.com
Wed Sep 18 13:53:21 CDT 2013


This matches what Cocoa does when determining how to handle an event so that,
for example, our test if a click is in the window grow box corresponds to
whether Cocoa will run an internal mouse-tracking loop to resize the window
when we pass it the event.  This fixes a problem where both Cocoa and user32
would try to run a resize loop and the cursor would get "stuck" resizing the
window after the button was released.
---
dlls/winemac.drv/cocoa_app.m |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Use-NSMouseInRect-instead-of-NSPointInRect-t.patch
Type: text/x-patch
Size: 1836 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130918/e8d7a090/attachment.bin>


More information about the wine-patches mailing list