comparison src/xdisp.c @ 30159:1b0331a7c724

(try_window_reusing_current_matrix, try_window_id): Before scrolling, turn off a mouse-highlight in the window being scrolled.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 12 Jul 2000 15:09:01 +0000
parents 8dc78ef485a4
children bade676e0950
comparison
equal deleted inserted replaced
30158:84d54b049d67 30159:1b0331a7c724
9613 if (run.height > 0 9613 if (run.height > 0
9614 && run.current_y != run.desired_y) 9614 && run.current_y != run.desired_y)
9615 { 9615 {
9616 update_begin (f); 9616 update_begin (f);
9617 rif->update_window_begin_hook (w); 9617 rif->update_window_begin_hook (w);
9618 rif->clear_mouse_face (w);
9618 rif->scroll_run_hook (w, &run); 9619 rif->scroll_run_hook (w, &run);
9619 rif->update_window_end_hook (w, 0); 9620 rif->update_window_end_hook (w, 0, 0);
9620 update_end (f); 9621 update_end (f);
9621 } 9622 }
9622 9623
9623 /* Shift current matrix down by nrows_scrolled lines. */ 9624 /* Shift current matrix down by nrows_scrolled lines. */
9624 bottom_row = MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w); 9625 bottom_row = MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w);
9781 if (run.height) 9782 if (run.height)
9782 { 9783 {
9783 struct frame *f = XFRAME (WINDOW_FRAME (w)); 9784 struct frame *f = XFRAME (WINDOW_FRAME (w));
9784 update_begin (f); 9785 update_begin (f);
9785 rif->update_window_begin_hook (w); 9786 rif->update_window_begin_hook (w);
9787 rif->clear_mouse_face (w);
9786 rif->scroll_run_hook (w, &run); 9788 rif->scroll_run_hook (w, &run);
9787 rif->update_window_end_hook (w, 0); 9789 rif->update_window_end_hook (w, 0, 0);
9788 update_end (f); 9790 update_end (f);
9789 } 9791 }
9790 9792
9791 /* Adjust Y positions of reused rows. */ 9793 /* Adjust Y positions of reused rows. */
9792 bottom_row = MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w); 9794 bottom_row = MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w);
10454 update_begin (f); 10456 update_begin (f);
10455 10457
10456 if (FRAME_WINDOW_P (f)) 10458 if (FRAME_WINDOW_P (f))
10457 { 10459 {
10458 rif->update_window_begin_hook (w); 10460 rif->update_window_begin_hook (w);
10461 rif->clear_mouse_face (w);
10459 rif->scroll_run_hook (w, &run); 10462 rif->scroll_run_hook (w, &run);
10460 rif->update_window_end_hook (w, 0); 10463 rif->update_window_end_hook (w, 0, 0);
10461 } 10464 }
10462 else 10465 else
10463 { 10466 {
10464 /* Terminal frame. In this case, dvpos gives the number of 10467 /* Terminal frame. In this case, dvpos gives the number of
10465 lines to scroll by; dvpos < 0 means scroll up. */ 10468 lines to scroll by; dvpos < 0 means scroll up. */