summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-22 03:51:12 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-22 03:51:12 +0000
commit667ccfccb2d3f7ab281ce121c3f914524f4959be (patch)
tree09ede59d3ee8c33663a1554b1a0734818fed432f /src/xmenu.c
parent6180e2c85a082f498276abda6b21b9cee14b296f (diff)
downloademacs-667ccfccb2d3f7ab281ce121c3f914524f4959be.tar.gz
(xmenu_show): Get the screen number for DisplayHeight
and DisplayWidth. Use root_window slot in the x_display_info.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index e1ace610f9c..138f0484aa3 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -2093,7 +2093,7 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
/* Find the position of the outside upper-left corner of
the inner window, with respect to the outer window. */
- if (f->display.x->parent_desc != ROOT_WINDOW)
+ if (f->display.x->parent_desc != FRAME_X_DISPLAY_INFO (f)->root_window)
{
BLOCK_INPUT;
XTranslateCoordinates (FRAME_X_DISPLAY (f),
@@ -2222,9 +2222,9 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
/* All set and ready to fly. */
XMenuRecompute (FRAME_X_DISPLAY (f), menu);
dispwidth = DisplayWidth (FRAME_X_DISPLAY (f),
- FRAME_X_DISPLAY_INFO (f)->screen);
+ XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
dispheight = DisplayHeight (FRAME_X_DISPLAY (f),
- FRAME_X_DISPLAY_INFO (f)->screen);
+ XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
x = min (x, dispwidth);
y = min (y, dispheight);
x = max (x, 1);