aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-11-04 04:00:50 +0000
committerKarl Heuer1994-11-04 04:00:50 +0000
commitbddd097cb1256e9851e694a5cc07f6e653113980 (patch)
treeb62d772851c88b27d0d968ab2424fa4dba6d5176 /src
parenta247bf214e7acb00454cb682fbdfcfbac00a1859 (diff)
downloademacs-bddd097cb1256e9851e694a5cc07f6e653113980.tar.gz
emacs-bddd097cb1256e9851e694a5cc07f6e653113980.zip
(XTread_socket): Generate iconify and deiconify events.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c12
1 files changed, 12 insertions, 0 deletions
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)
3457 We depend on x_make_frame_invisible to mark it iconified. */ 3457 We depend on x_make_frame_invisible to mark it iconified. */
3458 if (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f)) 3458 if (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f))
3459 f->async_iconified = 1; 3459 f->async_iconified = 1;
3460
3461 bufp->kind = iconify_event;
3462 XSETFRAME (bufp->frame_or_window, f);
3463 bufp++;
3464 count++;
3465 numchars--;
3460 } 3466 }
3461#ifdef USE_X_TOOLKIT 3467#ifdef USE_X_TOOLKIT
3462 goto OTHER; 3468 goto OTHER;
@@ -3475,6 +3481,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3475 /* wait_reading_process_input will notice this and update 3481 /* wait_reading_process_input will notice this and update
3476 the frame's display structures. */ 3482 the frame's display structures. */
3477 SET_FRAME_GARBAGED (f); 3483 SET_FRAME_GARBAGED (f);
3484
3485 bufp->kind = deiconify_event;
3486 XSETFRAME (bufp->frame_or_window, f);
3487 bufp++;
3488 count++;
3489 numchars--;
3478 } 3490 }
3479#ifdef USE_X_TOOLKIT 3491#ifdef USE_X_TOOLKIT
3480 goto OTHER; 3492 goto OTHER;