winemac: Move the window to the front of the z-order in SetFocus if it's the foregrou...
commit04317b5571e05838952711fbba08b62b81528da4
authorKen Thomases <ken@codeweavers.com>
Mon, 24 Apr 2017 18:07:08 +0000 (24 13:07 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 24 Apr 2017 18:31:43 +0000 (24 20:31 +0200)
tree7ff6a6fb60fea197b995b3d3cf2c11593cbac390
parent49964b3bc414f3be66b13b7e606e6d40a2ea3379
winemac: Move the window to the front of the z-order in SetFocus if it's the foreground window and not already in the front.

Ideally, user32 would adjust its z-order for window activation as happens on
Windows.  Then, the Mac driver would just reflect such changes in the Cocoa
windows.  But user32 doesn't do that.  SetActiveWindow() and SetForegroundWindow()
just adjust focus and status.

This is an attempt to achieve a similar result.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/window.c