winemac: Raise full-screen windows in front of the status items in the Mac menu bar.

Status items are the things on the right end of the Mac menu bar, like the
clock and volume widget.  It turns out that they are displayed at a higher
window level than everything else in the menu bar.  For the case where the
displays are not captured for a full-screen window, the window ends up at the
same window level as the status items, and they would sometimes end up on top.
They would draw over the full-screen window and could be clicked.
This commit is contained in:
Ken Thomases 2015-02-04 11:42:03 -06:00 committed by Alexandre Julliard
parent 6eb49669aa
commit 71b9e02265

View File

@ -791,7 +791,7 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif
if (captured)
level = CGShieldingWindowLevel() + 1; /* Need +1 or we don't get mouse moves */
else
level = NSMainMenuWindowLevel + 1;
level = NSStatusWindowLevel + 1;
if (self.floating)
level++;