winemac: Fix the logic for checking if a view is already in the intended z-order.
commit102cd6dcaea6d419dd72e397141df2c01f3fe3cd
authorKen Thomases <ken@codeweavers.com>
Fri, 3 Jun 2016 05:06:49 +0000 (3 00:06 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 3 Jun 2016 05:39:25 +0000 (3 14:39 +0900)
tree89666a1920606ff57b892c22e6d430b39bbaf1b9
parentbdbb3514bb08e1deed99e39b1fe29fec5a366b29
winemac: Fix the logic for checking if a view is already in the intended z-order.

-[NSView subviews] returns the views in back-to-front order, not front-to-back
as I had thought.

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