changeset 4304:b5014da888a8

(x_iconify_frame): Handle case where frame was invisible.
author Richard M. Stallman <rms@gnu.org>
date Tue, 27 Jul 1993 08:33:44 +0000
parents fd9865b5a41e
children a39dcf68a29c
files src/xterm.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Jul 27 08:32:33 1993 +0000
+++ b/src/xterm.c	Tue Jul 27 08:33:44 1993 +0000
@@ -4502,6 +4502,14 @@
      IconicState.  */
   x_wm_set_window_state (f, IconicState);
 
+  if (!FRAME_VISIBLE_P (f))
+    {
+      /* If the frame was withdrawn, before, we must map it.  */
+      XMapWindow (XDISPLAY FRAME_X_WINDOW (f));
+      if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
+	XMapSubwindows (x_current_display, FRAME_X_WINDOW (f));
+    }
+
   f->async_iconified = 1;
 #else /* ! defined (HAVE_X11) */
   XUnmapWindow (XDISPLAY FRAME_X_WINDOW (f));