aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-02 18:53:21 +0000
committerRichard M. Stallman1998-03-02 18:53:21 +0000
commit21323706226d50cf5ce8aad5ae3d2bd952685f2a (patch)
tree83bc63a6a2107c5960c4908b7443672dd01e20d2 /src
parent01b9f3552ca5ff180ee7e85e59baced60f3a6cf6 (diff)
downloademacs-21323706226d50cf5ce8aad5ae3d2bd952685f2a.tar.gz
emacs-21323706226d50cf5ce8aad5ae3d2bd952685f2a.zip
(XTframe_up_to_date): Check that mouse_face_mouse_frame
is non-null before calling note_mouse_highlight. (x_destroy_window): If f equals mouse_face_mouse_frame, clear that, and clear mouse_face_deferred_gc too.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index e910de5b281..9d8e40b7de6 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -421,9 +421,10 @@ XTframe_up_to_date (f)
421 if (FRAME_X_DISPLAY_INFO (f)->mouse_face_deferred_gc 421 if (FRAME_X_DISPLAY_INFO (f)->mouse_face_deferred_gc
422 || f == FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_frame) 422 || f == FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_frame)
423 { 423 {
424 note_mouse_highlight (FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_frame, 424 if (FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_frame)
425 FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_x, 425 note_mouse_highlight (FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_frame,
426 FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_y); 426 FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_x,
427 FRAME_X_DISPLAY_INFO (f)->mouse_face_mouse_y);
427 FRAME_X_DISPLAY_INFO (f)->mouse_face_deferred_gc = 0; 428 FRAME_X_DISPLAY_INFO (f)->mouse_face_deferred_gc = 0;
428 } 429 }
429 UNBLOCK_INPUT; 430 UNBLOCK_INPUT;
@@ -6114,6 +6115,8 @@ x_destroy_window (f)
6114 dpyinfo->mouse_face_end_row 6115 dpyinfo->mouse_face_end_row
6115 = dpyinfo->mouse_face_end_col = -1; 6116 = dpyinfo->mouse_face_end_col = -1;
6116 dpyinfo->mouse_face_window = Qnil; 6117 dpyinfo->mouse_face_window = Qnil;
6118 dpyinfo->mouse_face_deferred_gc = 0;
6119 dpyinfo->mouse_face_mouse_frame = 0;
6117 } 6120 }
6118 6121
6119 UNBLOCK_INPUT; 6122 UNBLOCK_INPUT;