]> code.delx.au - gnu-emacs/blobdiff - src/window.c
merge master
[gnu-emacs] / src / window.c
index 938f1a3268f830191edaa8307ffa45ac720ebba4..da4e66ca2ebd0af406b82247d8a07ef67ce30be2 100644 (file)
@@ -44,6 +44,12 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifdef MSDOS
 #include "msdos.h"
 #endif
+#ifdef HAVE_NS
+#include "nsterm.h"
+#endif
+#ifdef HAVE_XWIDGETS
+#include "xwidget.h"
+#endif
 
 Lisp_Object Qwindowp, Qwindow_live_p;
 static Lisp_Object Qwindow_valid_p;
@@ -4560,6 +4566,9 @@ Signal an error when WINDOW is the only window on its frame.  */)
 
       /* Block input.  */
       block_input ();
+#ifdef HAVE_XWIDGETS
+      xwidget_view_delete_all_in_window(w);
+#endif
       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).  */