changeset 37255:ff709975abaf

(xmenu_show): Use FRAME_X_SCREEN_NUMBER.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 06 Apr 2001 16:59:57 +0000
parents 9ace5acd0d74
children fddd2204a55d
files src/xmenu.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Fri Apr 06 16:59:10 2001 +0000
+++ b/src/xmenu.c	Fri Apr 06 16:59:57 2001 +0000
@@ -2710,10 +2710,8 @@
 
   /* All set and ready to fly.  */
   XMenuRecompute (FRAME_X_DISPLAY (f), menu);
-  dispwidth = DisplayWidth (FRAME_X_DISPLAY (f),
-			    XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
-  dispheight = DisplayHeight (FRAME_X_DISPLAY (f),
-			      XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
+  dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f));
+  dispheight = DisplayHeight (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f));
   x = min (x, dispwidth);
   y = min (y, dispheight);
   x = max (x, 1);