diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-10-31 15:10:34 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-10-31 15:50:06 -0700 |
commit | ecd55bc859eb5d7c639d5a6d531d9df524124247 (patch) | |
tree | 4a8cce8ca5ec3c903fabeccb97af3b14abba35aa /hw/xquartz/xpr | |
parent | 4e762b8aa37b588e6cffcdd4a0152090190005e2 (diff) |
XQuartz: displayScreenBounds uses quartzEnableRootless rather than !quartzHasRoot
(cherry picked from commit c883a78ef0c2e7e29437881db85d3815a89ab874)
Diffstat (limited to 'hw/xquartz/xpr')
-rw-r--r-- | hw/xquartz/xpr/xprScreen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/xquartz/xpr/xprScreen.c b/hw/xquartz/xpr/xprScreen.c index 6f8cc302a..b37a1d9f1 100644 --- a/hw/xquartz/xpr/xprScreen.c +++ b/hw/xquartz/xpr/xprScreen.c @@ -142,7 +142,7 @@ displayAtIndex(int index) * Return the bounds of a particular display. */ static CGRect -displayScreenBounds(CGDirectDisplayID id, Bool remove_menubar) +displayScreenBounds(CGDirectDisplayID id) { CGRect frame; @@ -153,7 +153,7 @@ displayScreenBounds(CGDirectDisplayID id, Bool remove_menubar) (int)frame.origin.x, (int)frame.origin.y); /* Remove menubar to help standard X11 window managers. */ - if (remove_menubar && !quartzHasRoot && + if (quartzEnableRootless && frame.origin.x == 0 && frame.origin.y == 0) { frame.origin.y += aquaMenuBarHeight; frame.size.height -= aquaMenuBarHeight; @@ -186,7 +186,7 @@ xprAddPseudoramiXScreens(int *x, int *y, int *width, int *height) /* Get the union of all screens */ for (i = 0; i < displayCount; i++) { CGDirectDisplayID dpy = displayList[i]; - frame = displayScreenBounds(dpy, TRUE); + frame = displayScreenBounds(dpy); unionRect = CGRectUnion(unionRect, frame); } @@ -204,7 +204,7 @@ xprAddPseudoramiXScreens(int *x, int *y, int *width, int *height) { CGDirectDisplayID dpy = displayList[i]; - frame = displayScreenBounds(dpy, TRUE); + frame = displayScreenBounds(dpy); frame.origin.x -= unionRect.origin.x; frame.origin.y -= unionRect.origin.y; @@ -328,7 +328,7 @@ xprAddScreen(int index, ScreenPtr pScreen) dpy = displayAtIndex(index); - frame = displayScreenBounds(dpy, TRUE); + frame = displayScreenBounds(dpy); dfb->x = frame.origin.x; dfb->y = frame.origin.y; |