Mercurial > emacs
changeset 16253:3ea02d461499
(make_lispy_event): When converting from pixel to glyph coordinates,
offset by WINDOW_LEFT_MARGIN; this is needed for left-side scrollbars.
(syms_of_keyboard): Initialize and staticpro
internal_last_event_frame and read_key_sequence_cmd.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 21 Sep 1996 01:11:31 +0000 |
parents | 41c962c84de5 |
children | 3e8b16badf3d |
files | src/keyboard.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Sat Sep 21 00:59:54 1996 +0000 +++ b/src/keyboard.c Sat Sep 21 01:11:31 1996 +0000 @@ -3764,7 +3764,7 @@ else { int pixcolumn, pixrow; - column -= XINT (XWINDOW (window)->left); + column -= WINDOW_LEFT_MARGIN (XWINDOW (window)); row -= XINT (XWINDOW (window)->top); glyph_to_pixel_coords (f, column, row, &pixcolumn, &pixrow); XSETINT (event->x, pixcolumn); @@ -4027,7 +4027,7 @@ if (WINDOWP (window)) { int pixcolumn, pixrow; - column -= XINT (XWINDOW (window)->left); + column -= WINDOW_LEFT_MARGIN (XWINDOW (window)); row -= XINT (XWINDOW (window)->top); glyph_to_pixel_coords (frame, column, row, &pixcolumn, &pixrow); XSETINT (x, pixcolumn);