]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket): Make deiconify event only if frame was iconified.
authorRichard M. Stallman <rms@gnu.org>
Mon, 10 Apr 1995 07:32:16 +0000 (07:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 10 Apr 1995 07:32:16 +0000 (07:32 +0000)
src/xterm.c

index b44fd9b41e6375c616f434a1c9f6aa408d6e68b3..6e7b646d153fb5da483fd7f2ddd74e47e5d40736 100644 (file)
@@ -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;