From 8c002a25f4640878279057f1245bf43740b66277 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 2 Feb 1994 07:34:08 +0000 Subject: [PATCH] (x_iconify_frame): Fix misbalanced BLOCK_INPUT/UNBLOCK_INPUT. --- src/xterm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. */ -- 2.39.5