winemac: Move a window to the front when its Mac title bar is clicked.
commit49bb11fef2ddc8c6c70bf28aefad0818eefca576
authorKen Thomases <ken@codeweavers.com>
Mon, 24 Apr 2017 18:07:10 +0000 (24 13:07 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 24 Apr 2017 18:31:59 +0000 (24 20:31 +0200)
tree474d3418ac644066616d3ebd7513433edbe2cecd
parentaf2690ab0664a9dfbad69fd6905d3a15dc8a499a
winemac: Move a window to the front when its Mac title bar is clicked.

Cocoa does this automatically for non-owned windows and informs the back end
via a different mechanism (WINDOW_BROUGHT_FORWARD).  However, for owned windows
(child windows in Cocoa parlance), Cocoa does not change their z-order relative
to the owner (parent) or sibling owned windows when clicked.  So, we have to
move the window in user32's z-order so that it gets moved appropriately on
screen in response.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_app.m
dlls/winemac.drv/cocoa_window.m
dlls/winemac.drv/event.c
dlls/winemac.drv/macdrv.h
dlls/winemac.drv/macdrv_cocoa.h
dlls/winemac.drv/window.c