diff options
Diffstat (limited to 'src/xdisp.c')
| -rw-r--r-- | src/xdisp.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index e0b36dbe100..c3a924d10d4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -27039,7 +27039,7 @@ void | |||
| 27039 | note_mouse_highlight (struct frame *f, int x, int y) | 27039 | note_mouse_highlight (struct frame *f, int x, int y) |
| 27040 | { | 27040 | { |
| 27041 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); | 27041 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); |
| 27042 | enum window_part part; | 27042 | enum window_part part = ON_NOTHING; |
| 27043 | Lisp_Object window; | 27043 | Lisp_Object window; |
| 27044 | struct window *w; | 27044 | struct window *w; |
| 27045 | Cursor cursor = No_Cursor; | 27045 | Cursor cursor = No_Cursor; |
| @@ -27073,11 +27073,14 @@ note_mouse_highlight (struct frame *f, int x, int y) | |||
| 27073 | /* Which window is that in? */ | 27073 | /* Which window is that in? */ |
| 27074 | window = window_from_coordinates (f, x, y, &part, 1); | 27074 | window = window_from_coordinates (f, x, y, &part, 1); |
| 27075 | 27075 | ||
| 27076 | /* If we were displaying active text in another window, clear that. | 27076 | /* If displaying active text in another window, clear that. */ |
| 27077 | Also clear if we move out of text area in same window. */ | ||
| 27078 | if (! EQ (window, hlinfo->mouse_face_window) | 27077 | if (! EQ (window, hlinfo->mouse_face_window) |
| 27079 | || (part != ON_TEXT && part != ON_MODE_LINE && part != ON_HEADER_LINE | 27078 | /* Also clear if we move out of text area in same window. */ |
| 27080 | && !NILP (hlinfo->mouse_face_window))) | 27079 | || (!NILP (hlinfo->mouse_face_window) |
| 27080 | && !NILP (window) | ||
| 27081 | && part != ON_TEXT | ||
| 27082 | && part != ON_MODE_LINE | ||
| 27083 | && part != ON_HEADER_LINE)) | ||
| 27081 | clear_mouse_face (hlinfo); | 27084 | clear_mouse_face (hlinfo); |
| 27082 | 27085 | ||
| 27083 | /* Not on a window -> return. */ | 27086 | /* Not on a window -> return. */ |