Attempt to avoid rare segfaults in show_mouse_face
* src/xdisp.c (show_mouse_face): Don't display the active region if called on a frame different from the one recorded in HLINFO. (Bug#37671)
This commit is contained in:
parent
88c6db9196
commit
33b31dc314
1 changed files with 4 additions and 0 deletions
|
@ -31454,6 +31454,10 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
|
|||
struct window *w = XWINDOW (hlinfo->mouse_face_window);
|
||||
struct frame *f = XFRAME (WINDOW_FRAME (w));
|
||||
|
||||
/* Don't bother doing anything if we are on a wrong frame. */
|
||||
if (f != hlinfo->mouse_face_mouse_frame)
|
||||
return;
|
||||
|
||||
if (/* If window is in the process of being destroyed, don't bother
|
||||
to do anything. */
|
||||
w->current_matrix != NULL
|
||||
|
|
Loading…
Add table
Reference in a new issue