Mercurial > emacs
comparison src/xterm.c @ 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 | 296cd41d2601 |
children | 97fc8c6b4a74 |
comparison
equal
deleted
inserted
replaced
9822:248462096d25 | 9823:e6dbda62fd61 |
---|---|
3455 has become iconified or invisible. So assume, if it | 3455 has become iconified or invisible. So assume, if it |
3456 was previously visible, than now it is iconified. | 3456 was previously visible, than now it is iconified. |
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; |
3463 #endif /* USE_X_TOOLKIT */ | 3469 #endif /* USE_X_TOOLKIT */ |
3464 break; | 3470 break; |
3473 f->async_iconified = 0; | 3479 f->async_iconified = 0; |
3474 | 3480 |
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; |
3481 #endif /* USE_X_TOOLKIT */ | 3493 #endif /* USE_X_TOOLKIT */ |
3482 break; | 3494 break; |