1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

(note_mouse_highlight): Clear mouse face if we move out of text area.

This commit is contained in:
Kim F. Storm 2004-11-08 22:25:30 +00:00
parent b7127aa8d0
commit 4674c583e2

View File

@ -20970,8 +20970,10 @@ note_mouse_highlight (f, x, y)
/* 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. */