diff options
| author | Po Lu | 2022-05-02 20:16:53 +0800 |
|---|---|---|
| committer | Po Lu | 2022-05-02 20:18:21 +0800 |
| commit | 7bf17ceee8c2d347917541e143ce25609e90ebbb (patch) | |
| tree | 70523f4b8f6a6c0ed9ed4d2658c8b6fc6f30a8bc /src | |
| parent | bcdcaf0219906862d02f1e6ab83972c8f4d3c0ba (diff) | |
| download | emacs-7bf17ceee8c2d347917541e143ce25609e90ebbb.tar.gz emacs-7bf17ceee8c2d347917541e143ce25609e90ebbb.zip | |
Wait for events from all displays in Xm dialogs even on XI2
* src/xfns.c (Fx_file_dialog): Always process events from all
displays.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/xfns.c b/src/xfns.c index 27bca5523cc..7176d626094 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -8787,25 +8787,11 @@ DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0, | |||
| 8787 | while (result == 0) | 8787 | while (result == 0) |
| 8788 | { | 8788 | { |
| 8789 | XEvent event, copy; | 8789 | XEvent event, copy; |
| 8790 | #ifdef HAVE_XINPUT2 | ||
| 8791 | x_menu_wait_for_event (FRAME_X_DISPLAY (f)); | ||
| 8792 | #else | ||
| 8793 | x_menu_wait_for_event (0); | 8790 | x_menu_wait_for_event (0); |
| 8794 | #endif | ||
| 8795 | 8791 | ||
| 8796 | if ( | 8792 | if (XtAppPending (Xt_app_con)) |
| 8797 | #ifndef HAVE_XINPUT2 | ||
| 8798 | XtAppPending (Xt_app_con) | ||
| 8799 | #else | ||
| 8800 | XPending (FRAME_X_DISPLAY (f)) | ||
| 8801 | #endif | ||
| 8802 | ) | ||
| 8803 | { | 8793 | { |
| 8804 | #ifndef HAVE_XINPUT2 | ||
| 8805 | XtAppNextEvent (Xt_app_con, &event); | 8794 | XtAppNextEvent (Xt_app_con, &event); |
| 8806 | #else | ||
| 8807 | XNextEvent (FRAME_X_DISPLAY (f), &event); | ||
| 8808 | #endif | ||
| 8809 | 8795 | ||
| 8810 | copy = event; | 8796 | copy = event; |
| 8811 | if (event.type == KeyPress | 8797 | if (event.type == KeyPress |