aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 9f7a2027379..d217f169fee 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3561,7 +3561,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3561 /* We can't distinguish, from the event, whether the window 3561 /* We can't distinguish, from the event, whether the window
3562 has become iconified or invisible. So assume, if it 3562 has become iconified or invisible. So assume, if it
3563 was previously visible, than now it is iconified. 3563 was previously visible, than now it is iconified.
3564 We depend on x_make_frame_invisible to mark it iconified. */ 3564 We depend on x_make_frame_invisible to mark it invisible. */
3565 if (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f)) 3565 if (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f))
3566 f->async_iconified = 1; 3566 f->async_iconified = 1;
3567 3567
@@ -5443,6 +5443,11 @@ x_iconify_frame (f)
5443 x_wm_set_window_state (f, IconicState); 5443 x_wm_set_window_state (f, IconicState);
5444 /* This was XtPopup, but that did nothing for an iconified frame. */ 5444 /* This was XtPopup, but that did nothing for an iconified frame. */
5445 XtMapWidget (f->output_data.x->widget); 5445 XtMapWidget (f->output_data.x->widget);
5446 /* The server won't give us any event to indicate
5447 that an invisible frame was changed to an icon,
5448 so we have to record it here. */
5449 f->iconified = 1;
5450 f->async_iconified = 1;
5446 UNBLOCK_INPUT; 5451 UNBLOCK_INPUT;
5447 return; 5452 return;
5448 } 5453 }