]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_iconify_frame): Handle case where frame was invisible.
authorRichard M. Stallman <rms@gnu.org>
Tue, 27 Jul 1993 08:33:44 +0000 (08:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 27 Jul 1993 08:33:44 +0000 (08:33 +0000)
src/xterm.c

index 4005f5a603c3eca7724f5332861aa3ffa3d15f1f..382c93ce82d45cdbf5f3007551fde3b33be665be 100644 (file)
@@ -4502,6 +4502,14 @@ x_iconify_frame (f)
      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));