]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_iconify_frame): Fix misbalanced BLOCK_INPUT/UNBLOCK_INPUT.
authorKarl Heuer <kwzh@gnu.org>
Wed, 2 Feb 1994 07:34:08 +0000 (07:34 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 2 Feb 1994 07:34:08 +0000 (07:34 +0000)
src/xterm.c

index 0b3c6dd91a832c63302ce30cbda4cc4a2f2c4f9d..7f0419e6f6167c3ca207968dd440baa6975cae00 100644 (file)
@@ -4815,6 +4815,10 @@ x_iconify_frame (f)
     error ("Can't notify window manager of iconification.");
 
   f->async_iconified = 1;
+
+  BLOCK_INPUT;
+  XFlushQueue ();
+  UNBLOCK_INPUT;
 #else /* not USE_X_TOOLKIT */
 
   BLOCK_INPUT;
@@ -4868,10 +4872,10 @@ x_iconify_frame (f)
       refreshicon (f);
     }
 #endif /* ! defined (HAVE_X11) */
-#endif /* not USE_X_TOOLKIT */
 
   XFlushQueue ();
   UNBLOCK_INPUT;
+#endif /* not USE_X_TOOLKIT */
 }
 
 /* Destroy the X window of frame F.  */