aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2005-10-10 22:54:03 +0000
committerKim F. Storm2005-10-10 22:54:03 +0000
commit31ab1f0585b47a6dbe54b5451e94c1ed64bf1347 (patch)
tree9e99acf7134c84472c99ef9cab076fd25445dd04 /src
parent74051a928f2ad4ce263a49f4f8990d19f4e56268 (diff)
downloademacs-31ab1f0585b47a6dbe54b5451e94c1ed64bf1347.tar.gz
emacs-31ab1f0585b47a6dbe54b5451e94c1ed64bf1347.zip
(make_lispy_position): Fix buffer position calculation for
mouse click or movement in fringe.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/keyboard.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6f68b6a441a..f0c9084da54 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12005-10-11 Kim F. Storm <storm@cua.dk> 12005-10-11 Kim F. Storm <storm@cua.dk>
2 2
3 * xterm.c (glyph_rect): Return 0 if position is outside text area.
4
3 * keyboard.c (make_lispy_position): Fix buffer position calculation for 5 * keyboard.c (make_lispy_position): Fix buffer position calculation for
4 mouse click or movement in fringe. 6 mouse click or movement in fringe.
5 7
diff --git a/src/keyboard.c b/src/keyboard.c
index 3826d460e3f..1d118c7a57b 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5096,6 +5096,7 @@ make_lispy_position (f, x, y, time)
5096 posn = (part == ON_LEFT_FRINGE) ? Qleft_fringe : Qright_fringe; 5096 posn = (part == ON_LEFT_FRINGE) ? Qleft_fringe : Qright_fringe;
5097 rx = 0; 5097 rx = 0;
5098 dx = wx; 5098 dx = wx;
5099 wx = (part == ON_LEFT_FRINGE) ? 0 : window_box_width (w, TEXT_AREA);
5099 if (part == ON_RIGHT_FRINGE) 5100 if (part == ON_RIGHT_FRINGE)
5100 dx -= (window_box_width (w, LEFT_MARGIN_AREA) 5101 dx -= (window_box_width (w, LEFT_MARGIN_AREA)
5101 + window_box_width (w, TEXT_AREA) 5102 + window_box_width (w, TEXT_AREA)