*** unix/tkUnixWm.c.orig	Fri Apr 16 03:51:47 1999
--- unix/tkUnixWm.c	Sun Jan 16 17:43:02 2000
***************
*** 2074,2079 ****
--- 2074,2080 ----
      TkWindow *wrapperPtr = wmPtr->wrapperPtr;
      TkWindow *winPtr = wmPtr->winPtr;
      TkDisplay *dispPtr = wmPtr->winPtr->dispPtr;
+     Tk_ErrorHandler handler;
  
      /* 
       * Update size information from the event.  There are a couple of
***************
*** 2204,2212 ****
--- 2205,2216 ----
       * the wrapper.
       */
  
+     handler = Tk_CreateErrorHandler(winPtr->display, -1, -1, -1,
+ 	    (Tk_ErrorProc *) NULL, (ClientData) NULL);
      XMoveResizeWindow(winPtr->display, winPtr->window, 0,
  	    wmPtr->menuHeight, (unsigned) wrapperPtr->changes.width,
  	    (unsigned) (wrapperPtr->changes.height - wmPtr->menuHeight));
+     Tk_DeleteErrorHandler(handler);
      if ((wmPtr->menubar != NULL)
  	    && ((Tk_Width(wmPtr->menubar) != wrapperPtr->changes.width)
  	    || (Tk_Height(wmPtr->menubar) != wmPtr->menuHeight))) {
