winemac: Use NSMouseInRect() instead of NSPointInRect() to compensate for Cocoa's...
commit018d629b3cc6bf1d8424a73bbb00279223bfb323
authorKen Thomases <ken@codeweavers.com>
Wed, 18 Sep 2013 18:53:21 +0000 (18 13:53 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 19 Sep 2013 07:30:18 +0000 (19 09:30 +0200)
tree41808cc75764483f3c7dea4609a63bbd6b0ff3b6
parente5f61e6eaf479c086e935c7c4e44a7e33f689519
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.
dlls/winemac.drv/cocoa_app.m