1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-01 21:30:54 -08:00

Fix processing of DND events on GTK

* src/xterm.c (x_dnd_begin_drag_and_drop): Clear `current_count'
and `current_hold_quit' after calling gtk_main_iteration.
This commit is contained in:
Po Lu 2022-05-31 13:24:27 +08:00
parent 75bf80e2b1
commit b7bbf88642

View file

@ -10642,6 +10642,10 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
&next_event, &finish, &hold_quit);
#endif
}
#else
/* Clear these before the read_socket_hook can be called. */
current_count = -1;
current_hold_quit = NULL;
#endif
/* The unblock_input below might try to read input, but