diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-04-10 07:32:16 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-04-10 07:32:16 +0000 |
commit | d806e7202af35d895dfecfdb9fa653500e592cba (patch) | |
tree | ce4d9db95fc434777ad08661bc0912c3a2a31f12 /src/xterm.c | |
parent | 70d4013c165888b5840f1579dc49abf79ad64d03 (diff) | |
download | emacs-d806e7202af35d895dfecfdb9fa653500e592cba.tar.gz |
(XTread_socket): Make deiconify event only if frame was iconified.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 13 |
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) the frame's display structures. */ SET_FRAME_GARBAGED (f); - bufp->kind = deiconify_event; - XSETFRAME (bufp->frame_or_window, f); - bufp++; - count++; - numchars--; + if (f->iconified) + { + bufp->kind = deiconify_event; + XSETFRAME (bufp->frame_or_window, f); + bufp++; + count++; + numchars--; + } } #ifdef USE_X_TOOLKIT goto OTHER; |