From: Chong Yidong Date: Tue, 16 Nov 2010 21:38:37 +0000 (-0500) Subject: * src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~221 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7aff9c22e329691403d54e2e508f38e5284101f4;p=emacs.git * src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit. --- 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