comparison src/ChangeLog @ 111566:b4dbe6c4111e

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.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 16 Nov 2010 21:37:45 -0500
parents 8e4172d91b56
children c1042b16fa46
comparison
equal deleted inserted replaced
111565:88b67190d0b2 111566:b4dbe6c4111e
1 2010-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
1 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu> 33 2010-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.
4 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused. 36 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
5 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu): 37 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):