--- moveresize.c.orig	Thu Jan 13 22:36:09 1994
+++ ./moveresize.c	Sat Jul 17 10:04:15 1999
@@ -5,7 +5,7 @@
  */
 
 #ifdef IDENT
-#ident "@(#)moveresize.c	1.6 olvwm version 07 Jan 1994"
+#ident "@(#)moveresize.c	1.8 olvwm version 01/13/98"
 #endif
 
 /*
@@ -1067,6 +1067,7 @@
     XUngrabPointer(mstuff->dpy, CurrentTime);
     XUngrabKeyboard(mstuff->dpy, CurrentTime);
 
+    XFlush(mstuff->dpy);
     /*
      * If we moved the outline (not the whole window) cause the window to be
      * raised at the same time it is moved.  Raise just the frame the user
@@ -1087,6 +1088,7 @@
 
     destroyStatusWindow(mstuff->statuswindow);
     mstuff->statuswindow = NULL;
+    GRV.AutoRaise = mstuff->AutoRaise;
     UninstallInterposer();
 }
 
