changeset 111563:29fbcfeb8b02

* src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 16 Nov 2010 16:38:37 -0500
parents 97341bc31847
children 8e4172d91b56
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Tue Nov 16 16:19:34 2010 -0500
+++ b/src/keyboard.c	Tue Nov 16 16:38:37 2010 -0500
@@ -5280,7 +5280,7 @@
 	 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