aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b44fd9b41e6..6e7b646d153 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3515,11 +3515,14 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3515 the frame's display structures. */ 3515 the frame's display structures. */
3516 SET_FRAME_GARBAGED (f); 3516 SET_FRAME_GARBAGED (f);
3517 3517
3518 bufp->kind = deiconify_event; 3518 if (f->iconified)
3519 XSETFRAME (bufp->frame_or_window, f); 3519 {
3520 bufp++; 3520 bufp->kind = deiconify_event;
3521 count++; 3521 XSETFRAME (bufp->frame_or_window, f);
3522 numchars--; 3522 bufp++;
3523 count++;
3524 numchars--;
3525 }
3523 } 3526 }
3524#ifdef USE_X_TOOLKIT 3527#ifdef USE_X_TOOLKIT
3525 goto OTHER; 3528 goto OTHER;