changeset 11348:e366abc2c753

(XTread_socket): Make deiconify event only if frame was iconified.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Apr 1995 07:32:16 +0000
parents 5c1f15a662e5
children 3b1d5cf74c93
files src/xterm.c
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Apr 10 07:25:46 1995 +0000
+++ b/src/xterm.c	Mon Apr 10 07:32:16 1995 +0000
@@ -3515,11 +3515,14 @@
 		     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;