diff options
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 |