diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-04-09 18:27:22 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-04-10 00:47:28 -0700 |
commit | d5ef88d7543ed787093099ab18db766c446b47d1 (patch) | |
tree | c13d0114e93092f41896645a95697c94683e5090 /hw | |
parent | 15146b863759640e7a73fab2301fb28ef4dead84 (diff) |
XQuartz: Fix window levels for rooted mode to allow showing the menu bar.
(cherry picked from commit 80759a4186bf0335edc85aecea2faf11fe09f491)
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xquartz/xpr/xpr.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hw/xquartz/xpr/xpr.h b/hw/xquartz/xpr/xpr.h index a93b83753..b329ca118 100644 --- a/hw/xquartz/xpr/xpr.h +++ b/hw/xquartz/xpr/xpr.h @@ -47,8 +47,10 @@ Bool QuartzInitCursor(ScreenPtr pScreen); void QuartzSuspendXCursor(ScreenPtr pScreen); void QuartzResumeXCursor(ScreenPtr pScreen, int x, int y); -/* This lookup table came straight from the Tiger X11 source. I tried to figure - * it out based on CGWindowLevel.h, but I dunno... -JH +/* If we are rooted, we need the root window and desktop levels to be below + * the menubar (24) but above native windows. Normal window level is 0. + * Floating window level is 3. The rest are filled in as appropriate. + * See CGWindowLevel.h */ #define _APPLEWM_SERVER_ @@ -57,7 +59,7 @@ static const int normal_window_levels[AppleWMNumWindowLevels+1] = { 0, 3, 4, 5, INT_MIN + 30, INT_MIN + 29, }; static const int rooted_window_levels[AppleWMNumWindowLevels+1] = { -202, 203, 204, 205, 201, 200 +20, 21, 22, 23, 19, 18, }; #endif /* XPR_H */ |