]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_iconify_frame): If frame is invisible, explicitly mark it as iconified.
authorRichard M. Stallman <rms@gnu.org>
Fri, 21 Jun 1996 15:29:55 +0000 (15:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 21 Jun 1996 15:29:55 +0000 (15:29 +0000)
src/xterm.c

index 9f7a2027379d87e4a231e8359031db941b8008f2..d217f169fee2ee98e9410aae5e33e5c3de6aa101 100644 (file)
@@ -3561,7 +3561,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
                  /* We can't distinguish, from the event, whether the window
                     has become iconified or invisible.  So assume, if it
                     was previously visible, than now it is iconified.
-                    We depend on x_make_frame_invisible to mark it iconified.  */
+                    We depend on x_make_frame_invisible to mark it invisible.  */
                  if (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f))
                    f->async_iconified = 1;
 
@@ -5443,6 +5443,11 @@ x_iconify_frame (f)
        x_wm_set_window_state (f, IconicState);
       /* This was XtPopup, but that did nothing for an iconified frame.  */
       XtMapWidget (f->output_data.x->widget);
+      /* The server won't give us any event to indicate
+        that an invisible frame was changed to an icon,
+        so we have to record it here.  */
+      f->iconified = 1;
+      f->async_iconified = 1;
       UNBLOCK_INPUT;
       return;
     }