aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorChong Yidong2010-11-16 21:37:45 -0500
committerChong Yidong2010-11-16 21:37:45 -0500
commit9173a8fbd77df7db68247a331df1c84f8ff074ec (patch)
tree551f2115d72059c703f73206bcc23a859a996b83 /src/ChangeLog
parent809fde057f0f7c2d04825c910e3f323e38a9d342 (diff)
downloademacs-9173a8fbd77df7db68247a331df1c84f8ff074ec.tar.gz
emacs-9173a8fbd77df7db68247a331df1c84f8ff074ec.zip
Cleanup of window coordinate positioning code.
Now, text area click input events measure Y from the top of the text area, excluding the header line if any. * src/dispnew.c (buffer_posn_from_coords): Assume that X counts from the start of the text area. * src/keyboard.c (make_lispy_position): For text area clicks, record Y pixel position relative to the text area, excluding header line. Also change X and Y to Lisp_Objects, not pointers; don't return coordinate values via pointers. Pass ON_TEXT_AREA coordinate to buffer_posn_from_coords counting from the start of the text area. (Fposn_at_x_y, make_lispy_event): Callers changed. * src/w32term.c (w32_read_socket): * src/msdos.c (dos_rawgetc): * src/xterm.c (handle_one_xevent): Likewise. * src/window.c (coordinates_in_window): Change X and Y to ints rather than pointers; don't return coordinates via pointers. (struct check_window_data): Change X and Y from pointers to ints. (window_from_coordinates): Remove args WX and WY; don't return coordinates via pointers. (Fcoordinates_in_window_p, window_from_coordinates): (check_window_containing, Fwindow_at): Callers changed. (window_relative_x_coord): New function. * src/window.h (window_from_coordinates, window_relative_x_coord): Update prototypes. * src/xdisp.c (remember_mouse_glyph): Change window_from_coordinates call. Use window_relative_x_coord. (note_mouse_highlight): Change window_from_coordinates call.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ca673be0074..401a93bbfb3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,35 @@
12010-11-16 Chong Yidong <cyd@stupidchicken.com>
2
3 * keyboard.c (make_lispy_position): For text area clicks, record Y
4 pixel position relative to the text area, excluding header line.
5 Also change X and Y to Lisp_Objects, not pointers; don't return
6 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
7 buffer_posn_from_coords counting from the start of the text area.
8 (Fposn_at_x_y, make_lispy_event): Callers changed.
9
10 * window.c (coordinates_in_window): Change X and Y to ints rather
11 than pointers; don't return coordinates via pointers.
12 (struct check_window_data): Change X and Y from pointers to ints.
13 (window_from_coordinates): Remove args WX and WY; don't return
14 coordinates via pointers.
15 (Fcoordinates_in_window_p, window_from_coordinates):
16 (check_window_containing, Fwindow_at): Callers changed.
17 (window_relative_x_coord): New function.
18
19 * window.h (window_from_coordinates, window_relative_x_coord):
20 Update prototypes.
21
22 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
23 the start of the text area.
24
25 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
26 call. Use window_relative_x_coord.
27 (note_mouse_highlight): Change window_from_coordinates call.
28
29 * w32term.c (w32_read_socket):
30 * msdos.c (dos_rawgetc):
31 * xterm.c (handle_one_xevent): Likewise.
32
12010-11-16 Dan Nicolaescu <dann@ics.uci.edu> 332010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2 34
3 * strftime.c (LOCALE_PARAM_DECL): Update for standard C. 35 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.