From a75b65c4f94d4d71938101cc6c4f33486ea02ab5 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Thu, 22 Feb 2007 19:52:41 +0000 Subject: [PATCH] (update_text_area): Clear mouse face on header lines. --- src/dispnew.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dispnew.c b/src/dispnew.c index 7841ffac76a..489c7c647e1 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -4398,8 +4398,10 @@ update_text_area (w, vpos) mouse-face areas after scrolling and other operations. However, it causes excessive flickering when mouse is moved across the mode line. Luckily, turning it off for the mode - line doesn't seem to hurt anything. -- cyd. */ - || (current_row->mouse_face_p && !current_row->mode_line_p) + line doesn't seem to hurt anything. -- cyd. + But it is still needed for the header line. -- kfs. */ + || (current_row->mouse_face_p + && !(current_row->mode_line_p && vpos > 0)) || current_row->x != desired_row->x) { rif->cursor_to (vpos, 0, desired_row->y, desired_row->x); -- 2.39.2