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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 5 10:42:43 CST 2015


Module: wine
Branch: master
Commit: 71b9e022658af4068edd45788508d2a31169006b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=71b9e022658af4068edd45788508d2a31169006b

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Feb  4 11:42:03 2015 -0600

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.

---

 dlls/winemac.drv/cocoa_window.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
index 4688687..a937d5d 100644
--- a/dlls/winemac.drv/cocoa_window.m
+++ b/dlls/winemac.drv/cocoa_window.m
@@ -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++;




More information about the wine-cvs mailing list