* src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit.

This commit is contained in:
Chong Yidong 2010-11-16 16:38:37 -05:00
parent 03f70355d8
commit 7aff9c22e3

View file

@ -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