aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-10 07:32:16 +0000
committerRichard M. Stallman1995-04-10 07:32:16 +0000
commitd806e7202af35d895dfecfdb9fa653500e592cba (patch)
treece4d9db95fc434777ad08661bc0912c3a2a31f12 /src/xterm.c
parent70d4013c165888b5840f1579dc49abf79ad64d03 (diff)
downloademacs-d806e7202af35d895dfecfdb9fa653500e592cba.tar.gz
emacs-d806e7202af35d895dfecfdb9fa653500e592cba.zip
(XTread_socket): Make deiconify event only if frame was iconified.
Diffstat (limited to 'src/xterm.c')
-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;