changeset 58053:78d72788c973

(note_mouse_highlight): Clear mouse face if we move out of text area.
author Kim F. Storm <storm@cua.dk>
date Mon, 08 Nov 2004 22:25:30 +0000
parents 09005c2a520b
children b40b27d0c034
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Nov 08 22:24:51 2004 +0000
+++ b/src/xdisp.c	Mon Nov 08 22:25:30 2004 +0000
@@ -20970,8 +20970,10 @@
   /* Which window is that in?  */
   window = window_from_coordinates (f, x, y, &part, 0, 0, 1);
 
-  /* If we were displaying active text in another window, clear that.  */
-  if (! EQ (window, dpyinfo->mouse_face_window))
+  /* If we were displaying active text in another window, clear that.
+     Also clear if we move out of text area in same window.  */
+  if (! EQ (window, dpyinfo->mouse_face_window)
+      || (part != ON_TEXT && !NILP (dpyinfo->mouse_face_window)))
     clear_mouse_face (dpyinfo);
 
   /* Not on a window -> return.  */