From: Karl Heuer Date: Fri, 4 Nov 1994 04:00:50 +0000 (+0000) Subject: (XTread_socket): Generate iconify and deiconify events. X-Git-Tag: emacs-19.34~6032 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bddd097cb1256e9851e694a5cc07f6e653113980;p=emacs.git (XTread_socket): Generate iconify and deiconify events. --- diff --git a/src/xterm.c b/src/xterm.c index 4ee9fdd3e32..f5d02267450 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3457,6 +3457,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected) 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 @@ XTread_socket (sd, bufp, numchars, waitp, expected) /* 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;