From afabdbe5992645245b87012fc1a66348714501ac Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 25 Nov 2000 18:40:15 +0000 Subject: [PATCH] (make_lispy_event) [mouse_wheel, drag_n_drop]: Args to window_from_coordinates should be pixel coordinates. --- src/keyboard.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 51f2e3b9968..beaf5507ef5 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -4975,7 +4975,8 @@ make_lispy_event (event) return Qnil; pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), &column, &row, NULL, 1); - window = window_from_coordinates (f, column, row, &part, 0); + window = window_from_coordinates (f, XINT (event->x), + XINT (event->y), &part, 0); if (!WINDOWP (window)) { @@ -5033,7 +5034,6 @@ make_lispy_event (event) Lisp_Object window; Lisp_Object posn; Lisp_Object files; - int row, column; /* The frame_or_window field should be a cons of the frame in which the event occurred and a list of the filenames @@ -5048,9 +5048,9 @@ make_lispy_event (event) have been deleted. */ if (! FRAME_LIVE_P (f)) return Qnil; - pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), - &column, &row, NULL, 1); - window = window_from_coordinates (f, column, row, &part, 0); + + window = window_from_coordinates (f, XINT (event->x), + XINT (event->y), &part, 0); if (!WINDOWP (window)) { -- 2.39.2