aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-25 12:45:28 +0000
committerGerd Moellmann2001-07-25 12:45:28 +0000
commit563b384d146608fd48f141b66d54d890e4e017c4 (patch)
treee4d4efe8ada972ae6f0d7e0a02ade4f173aa92ec /src
parent64c5be50fbdfe84d9da49f9cef73cea606d99ab8 (diff)
downloademacs-563b384d146608fd48f141b66d54d890e4e017c4.tar.gz
emacs-563b384d146608fd48f141b66d54d890e4e017c4.zip
(Fx_file_dialog): Block/unblock input while processing
events so that we get a chance of processing expose events.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xfns.c12
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 76101cce23f..87b07151e77 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-07-25 Gerd Moellmann <gerd@gnu.org> 12001-07-25 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4 events so that we get a chance of processing expose events.
5
3 * xdisp.c (resize_mini_window): Don't resize while redisplaying. 6 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4 7
52001-07-24 Gerd Moellmann <gerd@gnu.org> 82001-07-24 Gerd Moellmann <gerd@gnu.org>
diff --git a/src/xfns.c b/src/xfns.c
index 0d71a16fa6a..1713c8ef963 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -11256,10 +11256,18 @@ selection dialog's entry field, if MUSTMATCH is non-nil.")
11256 XmListSetPos (list, item_pos); 11256 XmListSetPos (list, item_pos);
11257 } 11257 }
11258 11258
11259 /* Process events until the user presses Cancel or OK. */ 11259 /* Process events until the user presses Cancel or OK. Block
11260 and unblock input here so that we get a chance of processing
11261 expose events. */
11262 UNBLOCK_INPUT;
11260 result = 0; 11263 result = 0;
11261 while (result == 0) 11264 while (result == 0)
11262 XtAppProcessEvent (Xt_app_con, XtIMAll); 11265 {
11266 BLOCK_INPUT;
11267 XtAppProcessEvent (Xt_app_con, XtIMAll);
11268 UNBLOCK_INPUT;
11269 }
11270 BLOCK_INPUT;
11263 11271
11264 /* Get the result. */ 11272 /* Get the result. */
11265 if (result == XmCR_OK) 11273 if (result == XmCR_OK)