aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-22 03:51:12 +0000
committerRichard M. Stallman1994-10-22 03:51:12 +0000
commitf1847de368bd4c9ec757371679ae1ac65d7e5e93 (patch)
tree6ebeae853391d7ed19c9c09740e2aede8510b0db /src
parentb0509a40110433be7e2a0963a788e4fd17658837 (diff)
downloademacs-f1847de368bd4c9ec757371679ae1ac65d7e5e93.tar.gz
emacs-f1847de368bd4c9ec757371679ae1ac65d7e5e93.zip
(xmenu_show): Get the screen number for DisplayHeight
and DisplayWidth. Use root_window slot in the x_display_info.
Diffstat (limited to 'src')
-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)
2093 2093
2094 /* Find the position of the outside upper-left corner of 2094 /* Find the position of the outside upper-left corner of
2095 the inner window, with respect to the outer window. */ 2095 the inner window, with respect to the outer window. */
2096 if (f->display.x->parent_desc != ROOT_WINDOW) 2096 if (f->display.x->parent_desc != FRAME_X_DISPLAY_INFO (f)->root_window)
2097 { 2097 {
2098 BLOCK_INPUT; 2098 BLOCK_INPUT;
2099 XTranslateCoordinates (FRAME_X_DISPLAY (f), 2099 XTranslateCoordinates (FRAME_X_DISPLAY (f),
@@ -2222,9 +2222,9 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
2222 /* All set and ready to fly. */ 2222 /* All set and ready to fly. */
2223 XMenuRecompute (FRAME_X_DISPLAY (f), menu); 2223 XMenuRecompute (FRAME_X_DISPLAY (f), menu);
2224 dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), 2224 dispwidth = DisplayWidth (FRAME_X_DISPLAY (f),
2225 FRAME_X_DISPLAY_INFO (f)->screen); 2225 XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
2226 dispheight = DisplayHeight (FRAME_X_DISPLAY (f), 2226 dispheight = DisplayHeight (FRAME_X_DISPLAY (f),
2227 FRAME_X_DISPLAY_INFO (f)->screen); 2227 XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
2228 x = min (x, dispwidth); 2228 x = min (x, dispwidth);
2229 y = min (y, dispheight); 2229 y = min (y, dispheight);
2230 x = max (x, 1); 2230 x = max (x, 1);