diff options
| author | Kim F. Storm | 2004-11-08 22:25:30 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-08 22:25:30 +0000 |
| commit | 4674c583e22f243af1fddb6246e4044f9431c028 (patch) | |
| tree | 833940de47511fcca17d37ee3e6192b3f9f67a72 /src | |
| parent | b7127aa8d0dfb639356470be604223e887b04695 (diff) | |
| download | emacs-4674c583e22f243af1fddb6246e4044f9431c028.tar.gz emacs-4674c583e22f243af1fddb6246e4044f9431c028.zip | |
(note_mouse_highlight): Clear mouse face if we move out of text area.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
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. */ |