Commit c8738c33 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(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.
parent aa5abbc0
......@@ -3764,7 +3764,7 @@ make_lispy_event (event)
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 @@ make_lispy_movement (frame, bar_window, part, x, y, time)
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment