* src/xfns.c (Fx_file_dialog): Always process events from all
displays.
while (result == 0)
{
XEvent event, copy;
-#ifdef HAVE_XINPUT2
- x_menu_wait_for_event (FRAME_X_DISPLAY (f));
-#else
x_menu_wait_for_event (0);
-#endif
- if (
-#ifndef HAVE_XINPUT2
- XtAppPending (Xt_app_con)
-#else
- XPending (FRAME_X_DISPLAY (f))
-#endif
- )
+ if (XtAppPending (Xt_app_con))
{
-#ifndef HAVE_XINPUT2
XtAppNextEvent (Xt_app_con, &event);
-#else
- XNextEvent (FRAME_X_DISPLAY (f), &event);
-#endif
copy = event;
if (event.type == KeyPress