aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-27 08:33:44 +0000
committerRichard M. Stallman1993-07-27 08:33:44 +0000
commita9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a (patch)
tree0fa8ab38e2ac4a3d287fc0115a127143b3a88217 /src
parentafe9fae94c5f21562e8cc2ef48dc178e00638c8e (diff)
downloademacs-a9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a.tar.gz
emacs-a9c0010533ccd89d5e7a7c2826ef18f1a9ca9e8a.zip
(x_iconify_frame): Handle case where frame was invisible.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 4005f5a603c..382c93ce82d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4502,6 +4502,14 @@ x_iconify_frame (f)
4502 IconicState. */ 4502 IconicState. */
4503 x_wm_set_window_state (f, IconicState); 4503 x_wm_set_window_state (f, IconicState);
4504 4504
4505 if (!FRAME_VISIBLE_P (f))
4506 {
4507 /* If the frame was withdrawn, before, we must map it. */
4508 XMapWindow (XDISPLAY FRAME_X_WINDOW (f));
4509 if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
4510 XMapSubwindows (x_current_display, FRAME_X_WINDOW (f));
4511 }
4512
4505 f->async_iconified = 1; 4513 f->async_iconified = 1;
4506#else /* ! defined (HAVE_X11) */ 4514#else /* ! defined (HAVE_X11) */
4507 XUnmapWindow (XDISPLAY FRAME_X_WINDOW (f)); 4515 XUnmapWindow (XDISPLAY FRAME_X_WINDOW (f));