Allow fetching events from other displays inside DND
* src/xterm.c (x_dnd_begin_drag_and_drop): Get the next event from the app connection instead on Xt.
This commit is contained in:
parent
4e0b0114f2
commit
380f0443b2
1 changed files with 7 additions and 3 deletions
10
src/xterm.c
10
src/xterm.c
|
@ -7067,8 +7067,14 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
|
|||
current_hold_quit = &hold_quit;
|
||||
#endif
|
||||
|
||||
#ifndef USE_GTK
|
||||
#ifdef USE_GTK
|
||||
gtk_main_iteration ();
|
||||
#else
|
||||
#ifdef USE_X_TOOLKIT
|
||||
XtAppNextEvent (Xt_app_con, &next_event);
|
||||
#else
|
||||
XNextEvent (FRAME_X_DISPLAY (f), &next_event);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_X_I18N
|
||||
#ifdef HAVE_XINPUT2
|
||||
|
@ -7091,8 +7097,6 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
|
|||
handle_one_xevent (FRAME_DISPLAY_INFO (f),
|
||||
&next_event, &finish, &hold_quit);
|
||||
#endif
|
||||
#else
|
||||
gtk_main_iteration ();
|
||||
#endif
|
||||
|
||||
if (hold_quit.kind != NO_EVENT)
|
||||
|
|
Loading…
Add table
Reference in a new issue