summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-02-02 07:34:08 +0000
committerKarl Heuer <kwzh@gnu.org>1994-02-02 07:34:08 +0000
commit8c002a25f4640878279057f1245bf43740b66277 (patch)
tree00c515469f66e560497c9aae5dbfba2c7922f6be
parent6a1dc7ac28663a6b63aa55d0000228882d4d4b97 (diff)
downloademacs-8c002a25f4640878279057f1245bf43740b66277.tar.gz
(x_iconify_frame): Fix misbalanced BLOCK_INPUT/UNBLOCK_INPUT.
-rw-r--r--src/xterm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 0b3c6dd91a8..7f0419e6f61 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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. */