diff options
-rw-r--r-- | src/xterm.c | 6 |
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. */ |