aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 9387f81ad20..a711f84cf13 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -1913,12 +1913,13 @@ static void
1913IT_update_begin (struct frame *f) 1913IT_update_begin (struct frame *f)
1914{ 1914{
1915 struct display_info *display_info = FRAME_X_DISPLAY_INFO (f); 1915 struct display_info *display_info = FRAME_X_DISPLAY_INFO (f);
1916 struct frame *mouse_face_frame = display_info->mouse_face_mouse_frame;
1916 1917
1917 highlight = 0; 1918 highlight = 0;
1918 1919
1919 BLOCK_INPUT; 1920 BLOCK_INPUT;
1920 1921
1921 if (f == display_info->mouse_face_mouse_frame) 1922 if (f && f == mouse_face_frame)
1922 { 1923 {
1923 /* Don't do highlighting for mouse motion during the update. */ 1924 /* Don't do highlighting for mouse motion during the update. */
1924 display_info->mouse_face_defer = 1; 1925 display_info->mouse_face_defer = 1;
@@ -1955,7 +1956,7 @@ IT_update_begin (struct frame *f)
1955 clear_mouse_face (display_info); 1956 clear_mouse_face (display_info);
1956 } 1957 }
1957 } 1958 }
1958 else if (!FRAME_LIVE_P (display_info->mouse_face_mouse_frame)) 1959 else if (mouse_face_frame && !FRAME_LIVE_P (mouse_face_frame))
1959 { 1960 {
1960 /* If the frame with mouse highlight was deleted, invalidate the 1961 /* If the frame with mouse highlight was deleted, invalidate the
1961 highlight info. */ 1962 highlight info. */
@@ -1986,7 +1987,7 @@ IT_frame_up_to_date (struct frame *f)
1986 struct window *sw; 1987 struct window *sw;
1987 1988
1988 if (dpyinfo->mouse_face_deferred_gc 1989 if (dpyinfo->mouse_face_deferred_gc
1989 || f == dpyinfo->mouse_face_mouse_frame) 1990 || (f && f == dpyinfo->mouse_face_mouse_frame))
1990 { 1991 {
1991 BLOCK_INPUT; 1992 BLOCK_INPUT;
1992 if (dpyinfo->mouse_face_mouse_frame) 1993 if (dpyinfo->mouse_face_mouse_frame)