# HG changeset patch # User Richard M. Stallman # Date 835370995 0 # Node ID 300b52e3768146c14d2a14c8f703742e5a5606bb # Parent f0b473ee47a515bda09109f08a7eb365a2cf2b8a (x_iconify_frame): If frame is invisible, explicitly mark it as iconified. diff -r f0b473ee47a5 -r 300b52e37681 src/xterm.c --- 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; }