struct window *w = XWINDOW (window);
struct buffer *b = XBUFFER (buffer);
int count = SPECPDL_INDEX ();
+#ifdef HAVE_WINDOW_SYSTEM
+ struct frame *f = XFRAME (w->frame);
+ Display_Info *dpyinfo = (f && FRAME_X_OUTPUT (f)) ?
+ FRAME_X_DISPLAY_INFO (f) : NULL;
+#endif
w->buffer = buffer;
call1 (Vrun_hooks, Qwindow_configuration_change_hook);
}
+#ifdef HAVE_WINDOW_SYSTEM
+ if (dpyinfo && EQ (window, dpyinfo->mouse_face_window))
+ clear_mouse_face (dpyinfo);
+#endif
+
unbind_to (count, Qnil);
}