aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-09 16:30:38 +0000
committerRichard M. Stallman1996-03-09 16:30:38 +0000
commitb983e34ec0880c53f0e6291338c5c31d4bc0fb62 (patch)
tree65ca101b749b0a5d777a5891e4a0248a27277ba5 /src
parent00bafa45f92b991d0741c7a74b945ba26a902b22 (diff)
downloademacs-b983e34ec0880c53f0e6291338c5c31d4bc0fb62.tar.gz
emacs-b983e34ec0880c53f0e6291338c5c31d4bc0fb62.zip
(x_calc_absolute_position): Don't explicitly subtract
the external menu bar height--PIXEL_HEIGHT (f) includes that.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 49b805bdb04..219a56ebec1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4990,11 +4990,11 @@ x_calc_absolute_position (f)
4990 + f->output_data.x->left_pos); 4990 + f->output_data.x->left_pos);
4991 4991
4992 if (flags & YNegative) 4992 if (flags & YNegative)
4993 /* We used to subtract f->output_data.x->menubar_height here
4994 in the toolkit case, but PIXEL_HEIGHT already includes that. */
4993 f->output_data.x->top_pos = (FRAME_X_DISPLAY_INFO (f)->height 4995 f->output_data.x->top_pos = (FRAME_X_DISPLAY_INFO (f)->height
4994 - 2 * f->output_data.x->border_width - win_y 4996 - 2 * f->output_data.x->border_width - win_y
4995 - PIXEL_HEIGHT (f) 4997 - PIXEL_HEIGHT (f)
4996 - (FRAME_EXTERNAL_MENU_BAR (f)
4997 ? f->output_data.x->menubar_height : 0)
4998 + f->output_data.x->top_pos); 4998 + f->output_data.x->top_pos);
4999 /* The left_pos and top_pos 4999 /* The left_pos and top_pos
5000 are now relative to the top and left screen edges, 5000 are now relative to the top and left screen edges,