From: Richard M. Stallman Date: Mon, 10 Apr 1995 07:32:16 +0000 (+0000) Subject: (XTread_socket): Make deiconify event only if frame was iconified. X-Git-Tag: emacs-19.34~4510 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d806e7202af35d895dfecfdb9fa653500e592cba;p=emacs.git (XTread_socket): Make deiconify event only if frame was iconified. --- 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;