winemac: Use NSMouseInRect() instead of NSPointInRect() to compensate for Cocoa's...
commit8aeb1059723fc4a366256237b6795cbbd7548610
authorKen Thomases <ken@codeweavers.com>
Wed, 18 Sep 2013 18:53:21 +0000 (18 13:53 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 15 Nov 2013 13:12:02 +0000 (15 14:12 +0100)
tree3bb1152a053605c30db89380e2d4ea7495e308ea
parentb5bb8d3e9c36e8bccde2be62981eca05d1ef9183
winemac: Use NSMouseInRect() instead of NSPointInRect() to compensate for Cocoa's off-by-one coordinate system.

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.

(cherry picked from commit 018d629b3cc6bf1d8424a73bbb00279223bfb323)
dlls/winemac.drv/cocoa_app.m