]> git.eshelyaron.com Git - emacs.git/commitdiff
(make_lispy_event): When converting from pixel to glyph coordinates,
authorRichard M. Stallman <rms@gnu.org>
Sat, 21 Sep 1996 01:11:31 +0000 (01:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 21 Sep 1996 01:11:31 +0000 (01:11 +0000)
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.

src/keyboard.c

index a145406e37554f9de5838fb0c060bab20c504b3c..e55d1e06650aa7ce8ca796fdf0cd6bf24dd68f19 100644 (file)
@@ -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);