]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_calc_absolute_position): Don't explicitly subtract
authorRichard M. Stallman <rms@gnu.org>
Sat, 9 Mar 1996 16:30:38 +0000 (16:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 9 Mar 1996 16:30:38 +0000 (16:30 +0000)
the external menu bar height--PIXEL_HEIGHT (f) includes that.

src/xterm.c

index 49b805bdb0481cededad37e23628f9ec7c0de3b3..219a56ebec1db8262f3fd8d2c2c406348b4573cf 100644 (file)
@@ -4990,11 +4990,11 @@ x_calc_absolute_position (f)
                              + f->output_data.x->left_pos);
 
   if (flags & YNegative)
+    /* We used to subtract f->output_data.x->menubar_height here
+       in the toolkit case, but PIXEL_HEIGHT already includes that.  */
     f->output_data.x->top_pos = (FRAME_X_DISPLAY_INFO (f)->height
                             - 2 * f->output_data.x->border_width - win_y
                             - PIXEL_HEIGHT (f)
-                            - (FRAME_EXTERNAL_MENU_BAR (f)
-                               ? f->output_data.x->menubar_height : 0)
                             + f->output_data.x->top_pos);
   /* The left_pos and top_pos
      are now relative to the top and left screen edges,