diff options
| author | Richard M. Stallman | 1996-09-21 01:11:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-21 01:11:31 +0000 |
| commit | c8738c33c586a3b99adb3184bf2879c8d5fa325a (patch) | |
| tree | 7ba70a251e2d70f245ad25398f6115660ce28317 /src | |
| parent | aa5abbc013c2e9fdb2bec5c7ed7cf6f5b00352f5 (diff) | |
| download | emacs-c8738c33c586a3b99adb3184bf2879c8d5fa325a.tar.gz emacs-c8738c33c586a3b99adb3184bf2879c8d5fa325a.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index a145406e375..e55d1e06650 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3764,7 +3764,7 @@ make_lispy_event (event) | |||
| 3764 | else | 3764 | else |
| 3765 | { | 3765 | { |
| 3766 | int pixcolumn, pixrow; | 3766 | int pixcolumn, pixrow; |
| 3767 | column -= XINT (XWINDOW (window)->left); | 3767 | column -= WINDOW_LEFT_MARGIN (XWINDOW (window)); |
| 3768 | row -= XINT (XWINDOW (window)->top); | 3768 | row -= XINT (XWINDOW (window)->top); |
| 3769 | glyph_to_pixel_coords (f, column, row, &pixcolumn, &pixrow); | 3769 | glyph_to_pixel_coords (f, column, row, &pixcolumn, &pixrow); |
| 3770 | XSETINT (event->x, pixcolumn); | 3770 | XSETINT (event->x, pixcolumn); |
| @@ -4027,7 +4027,7 @@ make_lispy_movement (frame, bar_window, part, x, y, time) | |||
| 4027 | if (WINDOWP (window)) | 4027 | if (WINDOWP (window)) |
| 4028 | { | 4028 | { |
| 4029 | int pixcolumn, pixrow; | 4029 | int pixcolumn, pixrow; |
| 4030 | column -= XINT (XWINDOW (window)->left); | 4030 | column -= WINDOW_LEFT_MARGIN (XWINDOW (window)); |
| 4031 | row -= XINT (XWINDOW (window)->top); | 4031 | row -= XINT (XWINDOW (window)->top); |
| 4032 | glyph_to_pixel_coords (frame, column, row, &pixcolumn, &pixrow); | 4032 | glyph_to_pixel_coords (frame, column, row, &pixcolumn, &pixrow); |
| 4033 | XSETINT (x, pixcolumn); | 4033 | XSETINT (x, pixcolumn); |