winemac: Don't allow double-clicks in the content area to zoom the window.
commitd9ed0fb8e5028cb264c10f1e15c8bf2f3658ca41
authorKen Thomases <ken@codeweavers.com>
Tue, 28 Oct 2014 03:54:29 +0000 (27 22:54 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 28 Oct 2014 06:25:57 +0000 (28 15:25 +0900)
tree218f93f123be42f07ce3eeba3d0c861445093ecb
parent01b0746906bf2f570e5faca68714076384d0f600
winemac: Don't allow double-clicks in the content area to zoom the window.

On Yosemite, double-clicking a window's title bar zooms it.  (This is to
compensate for the fact that the zoom button has been replaced by a full-screen
button.)  Sometimes, double-clicking in the content area would count as double-
clicking in the title bar.

This is controlled, in part, by the -mouseDownCanMoveWindow method of the view
that was hit in the window.  The default implementation of that returns YES
for non-opaque views, as the views are in the Mac driver.  Overriding it to
return NO prevents the problem.
dlls/winemac.drv/cocoa_window.m