aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b934e706c59..c2d903d347d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20970,8 +20970,10 @@ note_mouse_highlight (f, x, y)
20970 /* Which window is that in? */ 20970 /* Which window is that in? */
20971 window = window_from_coordinates (f, x, y, &part, 0, 0, 1); 20971 window = window_from_coordinates (f, x, y, &part, 0, 0, 1);
20972 20972
20973 /* If we were displaying active text in another window, clear that. */ 20973 /* If we were displaying active text in another window, clear that.
20974 if (! EQ (window, dpyinfo->mouse_face_window)) 20974 Also clear if we move out of text area in same window. */
20975 if (! EQ (window, dpyinfo->mouse_face_window)
20976 || (part != ON_TEXT && !NILP (dpyinfo->mouse_face_window)))
20975 clear_mouse_face (dpyinfo); 20977 clear_mouse_face (dpyinfo);
20976 20978
20977 /* Not on a window -> return. */ 20979 /* Not on a window -> return. */