From 7aff9c22e329691403d54e2e508f38e5284101f4 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 16 Nov 2010 16:38:37 -0500 Subject: [PATCH] * src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit. --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 1073fa11f7a..d048404e856 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -5280,7 +5280,7 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y, buffer_posn_from_coords. */ if (part == ON_TEXT) { - xret = wx - window_box_left (w, TEXT_AREA); + xret = XINT (x) - window_box_left (w, TEXT_AREA); yret = wy - WINDOW_HEADER_LINE_HEIGHT (w); } /* For mode line and header line clicks, return X relative to -- 2.39.5