Mercurial > emacs
changeset 29866:c31c4d7dd0e0
(Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
differently.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 22 Jun 2000 22:05:55 +0000 |
parents | 6b6699c7fce3 |
children | 1c42f2313b4f |
files | src/xfns.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Thu Jun 22 22:05:37 2000 +0000 +++ b/src/xfns.c Thu Jun 22 22:05:55 2000 +0000 @@ -10053,6 +10053,15 @@ XmListSetPos (list, item_pos); } +#ifdef HAVE_MOTIF_2_1 + + /* Process events until the user presses Cancel or OK. */ + result = 0; + while (result == 0 || XtAppPending (Xt_app_con)) + XtAppProcessEvent (Xt_app_con, XtIMAll); + +#else /* not HAVE_MOTIF_2_1 */ + /* Process all events until the user presses Cancel or OK. */ for (result = 0; result == 0;) { @@ -10068,13 +10077,15 @@ parent = widget; while (parent && parent != dialog) parent = XtParent (parent); - + if (parent == dialog || (event.type == Expose && !process_expose_from_menu (event))) XtDispatchEvent (&event); } +#endif /* not HAVE_MOTIF_2_1 */ + /* Get the result. */ if (result == XmCR_OK) {