]> git.eshelyaron.com Git - emacs.git/commitdiff
(adjust_glyph_matrix): Don't reuse a window's current
authorGerd Moellmann <gerd@gnu.org>
Wed, 6 Dec 2000 15:46:27 +0000 (15:46 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 6 Dec 2000 15:46:27 +0000 (15:46 +0000)
matrix if the window's left position has changed; we need to
redraw it in this case.

src/dispnew.c

index f16933b69b312bf4c2437cfd084c8ef132779733..30db7dda2983bd5ffa0000b41d0f24de3d6c0643 100644 (file)
@@ -550,6 +550,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
       if (!marginal_areas_changed_p
          && !fonts_changed_p
          && !header_line_changed_p
+         && matrix->window_left_x == XFASTINT (w->left)
          && matrix->window_top_y == XFASTINT (w->top)
          && matrix->window_height == window_height
          && matrix->window_vscroll == w->vscroll
@@ -686,6 +687,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
          upper window).  Invalidate all rows that are no longer part
          of the window.  */
       if (!marginal_areas_changed_p
+         && matrix->window_left_x == XFASTINT (w->left)
          && matrix->window_top_y == XFASTINT (w->top)
          && matrix->window_width == window_box_width (w, -1))
        {
@@ -721,6 +723,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
      was last adjusted.  This is used to optimize redisplay above.  */
   if (w)
     {
+      matrix->window_left_x = XFASTINT (w->left);
       matrix->window_top_y = XFASTINT (w->top);
       matrix->window_height = window_height;
       matrix->window_width = window_width;