summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-22 00:43:04 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-22 00:43:04 +0000
commitc8dba2407ce5cfa9088a5a67bee9bd03951b32e5 (patch)
tree707ac43f0a36b0e0d2edf27d9e8c81c17a46199a
parentb849c41360f7e6ac7ca6e22c25bebb5951fd7077 (diff)
downloademacs-c8dba2407ce5cfa9088a5a67bee9bd03951b32e5.tar.gz
(construct_menu_click): Undo previous change.
-rw-r--r--src/xterm.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/xterm.c b/src/xterm.c
index f9eb67128a9..0b597a84553 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1673,7 +1673,7 @@ x_is_vendor_fkey (sym)
that the glyph at X, Y occupies, if BOUNDS != 0.
If NOCLIP is nonzero, do not force the value into range. */
-static void
+void
pixel_to_glyph_coords (f, pix_x, pix_y, x, y, bounds, noclip)
FRAME_PTR f;
register int pix_x, pix_y;
@@ -1780,14 +1780,9 @@ construct_menu_click (result, event, f)
? up_modifier
: down_modifier));
- {
- int row, column;
-
- pixel_to_glyph_coords (f, event->x, event->y, &column, &row, NULL, 0);
- XFASTINT (result->x) = column;
- XFASTINT (result->y) = -1;
- XSET (result->frame_or_window, Lisp_Frame, f);
- }
+ XFASTINT (result->x) = event->x;
+ XSETINT (result->y, -1);
+ XSET (result->frame_or_window, Lisp_Frame, f);
}
/* Function to report a mouse movement to the mainstream Emacs code.