changeset 15472:300b52e37681

(x_iconify_frame): If frame is invisible, explicitly mark it as iconified.
author Richard M. Stallman <rms@gnu.org>
date Fri, 21 Jun 1996 15:29:55 +0000
parents f0b473ee47a5
children cdf40972804f
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Jun 21 05:54:19 1996 +0000
+++ b/src/xterm.c	Fri Jun 21 15:29:55 1996 +0000
@@ -3561,7 +3561,7 @@
 		  /* 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_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;
     }