Commit 95986d52 authored by Chong Yidong's avatar Chong Yidong
Browse files

* window.c (Fdelete_window_internal): Invalidate the mouse highlight.

Fixes: debbugs:9904
parent bd7da63e
2012-02-12 Chong Yidong <cyd@gnu.org>
* window.c (Fdelete_window_internal): Invalidate the mouse
highlight (Bug#9904).
2012-02-12 Glenn Morris <rgm@gnu.org>
* xselect.c (Fx_own_selection_internal)
......
......@@ -3886,10 +3886,18 @@ Signal an error when WINDOW is the only window on its frame. */)
&& EQ (r->new_total, (horflag ? r->total_cols : r->total_lines)))
/* We can delete WINDOW now. */
{
Mouse_HLInfo *hlinfo;
/* Block input. */
BLOCK_INPUT;
window_resize_apply (p, horflag);
/* If this window is referred to by the dpyinfo's mouse
highlight, invalidate that slot to be safe (Bug#9904). */
hlinfo = MOUSE_HL_INFO (XFRAME (w->frame));
if (EQ (hlinfo->mouse_face_window, window))
hlinfo->mouse_face_window = Qnil;
windows_or_buffers_changed++;
Vwindow_list = Qnil;
FRAME_WINDOW_SIZES_CHANGED (f) = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment