changeset 9823:e6dbda62fd61

(XTread_socket): Generate iconify and deiconify events.
author Karl Heuer <kwzh@gnu.org>
date Fri, 04 Nov 1994 04:00:50 +0000
parents 248462096d25
children 1a60406f3d3e
files src/xterm.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Nov 03 21:23:40 1994 +0000
+++ b/src/xterm.c	Fri Nov 04 04:00:50 1994 +0000
@@ -3457,6 +3457,12 @@
 		     We depend on x_make_frame_invisible to mark it iconified.  */
 		  if (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f))
 		    f->async_iconified = 1;
+
+		  bufp->kind = iconify_event;
+		  XSETFRAME (bufp->frame_or_window, f);
+		  bufp++;
+		  count++;
+		  numchars--;
 		}
 #ifdef USE_X_TOOLKIT
 	      goto OTHER;
@@ -3475,6 +3481,12 @@
 		  /* wait_reading_process_input will notice this and update
 		     the frame's display structures.  */
 		  SET_FRAME_GARBAGED (f);
+
+		  bufp->kind = deiconify_event;
+		  XSETFRAME (bufp->frame_or_window, f);
+		  bufp++;
+		  count++;
+		  numchars--;
 		}
 #ifdef USE_X_TOOLKIT
 	      goto OTHER;