aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2010-11-16 16:38:37 -0500
committerChong Yidong2010-11-16 16:38:37 -0500
commit7aff9c22e329691403d54e2e508f38e5284101f4 (patch)
treed63533a9588817d958539c51dad22b9ee22193a9 /src
parent03f70355d8105f3dd87c07089d78950319a5f2f6 (diff)
downloademacs-7aff9c22e329691403d54e2e508f38e5284101f4.tar.gz
emacs-7aff9c22e329691403d54e2e508f38e5284101f4.zip
* src/keyboard.c (make_lispy_position): Fix pixel calculation error in last commit.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c2
1 files changed, 1 insertions, 1 deletions
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,
5280 buffer_posn_from_coords. */ 5280 buffer_posn_from_coords. */
5281 if (part == ON_TEXT) 5281 if (part == ON_TEXT)
5282 { 5282 {
5283 xret = wx - window_box_left (w, TEXT_AREA); 5283 xret = XINT (x) - window_box_left (w, TEXT_AREA);
5284 yret = wy - WINDOW_HEADER_LINE_HEIGHT (w); 5284 yret = wy - WINDOW_HEADER_LINE_HEIGHT (w);
5285 } 5285 }
5286 /* For mode line and header line clicks, return X relative to 5286 /* For mode line and header line clicks, return X relative to