[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7bf17ceee8: Wait for events from all displays in Xm dialogs even
From: |
Po Lu |
Subject: |
master 7bf17ceee8: Wait for events from all displays in Xm dialogs even on XI2 |
Date: |
Mon, 2 May 2022 08:18:32 -0400 (EDT) |
branch: master
commit 7bf17ceee8c2d347917541e143ce25609e90ebbb
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Wait for events from all displays in Xm dialogs even on XI2
* src/xfns.c (Fx_file_dialog): Always process events from all
displays.
---
src/xfns.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/src/xfns.c b/src/xfns.c
index 27bca5523c..7176d62609 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,
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 7bf17ceee8: Wait for events from all displays in Xm dialogs even on XI2,
Po Lu <=