aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-04-06 17:00:26 +0000
committerGerd Moellmann2001-04-06 17:00:26 +0000
commit63685b9d09862e4e964d2dc7a4e856742fe69420 (patch)
tree6cf506fe36c6879b26b3a109a24ad50cb7df8628
parent9d5361248cce03ff651062740aef4debfc3ab40a (diff)
downloademacs-63685b9d09862e4e964d2dc7a4e856742fe69420.tar.gz
emacs-63685b9d09862e4e964d2dc7a4e856742fe69420.zip
(xmenu_show): Use FRAME_X_SCREEN_NUMBER.
-rw-r--r--src/ChangeLog10
-rw-r--r--src/xmenu.c6
2 files changed, 12 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8ef90b8cfdc..ed4535c28d9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12001-04-06 Gerd Moellmann <gerd@gnu.org>
2
3 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4 Make sure the tooltip is completely visible.
5 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
6
7 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
8
9 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
10
12001-04-06 Dave Love <fx@gnu.org> 112001-04-06 Dave Love <fx@gnu.org>
2 12
3 * composite.c (update_compositions) <check_mask & CHECK_HEAD>: Fix 13 * composite.c (update_compositions) <check_mask & CHECK_HEAD>: Fix
diff --git a/src/xmenu.c b/src/xmenu.c
index b4a1a87d4d9..6317c126286 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -2710,10 +2710,8 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2710 2710
2711 /* All set and ready to fly. */ 2711 /* All set and ready to fly. */
2712 XMenuRecompute (FRAME_X_DISPLAY (f), menu); 2712 XMenuRecompute (FRAME_X_DISPLAY (f), menu);
2713 dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), 2713 dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f));
2714 XScreenNumberOfScreen (FRAME_X_SCREEN (f))); 2714 dispheight = DisplayHeight (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f));
2715 dispheight = DisplayHeight (FRAME_X_DISPLAY (f),
2716 XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
2717 x = min (x, dispwidth); 2715 x = min (x, dispwidth);
2718 y = min (y, dispheight); 2716 y = min (y, dispheight);
2719 x = max (x, 1); 2717 x = max (x, 1);