XQuartz: Fix window levels for rooted mode to allow showing the menu bar.

(cherry picked from commit 80759a4186)
This commit is contained in:
Jeremy Huddleston 2009-04-09 18:27:22 -07:00
parent 15146b8637
commit d5ef88d754

View File

@ -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 */