aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-05-31 13:24:27 +0800
committerPo Lu2022-05-31 13:24:27 +0800
commitb7bbf8864298dfd959ca6e7b0fa8d7fd0bbbd81f (patch)
tree2427eeacffe539ead223299b3a0566a8c59feaca /src
parent75bf80e2b136903525a54d6c53d69571e7b1332e (diff)
downloademacs-b7bbf8864298dfd959ca6e7b0fa8d7fd0bbbd81f.tar.gz
emacs-b7bbf8864298dfd959ca6e7b0fa8d7fd0bbbd81f.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 8d2365a5c3c..e9c38ae4847 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10642,6 +10642,10 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
10642 &next_event, &finish, &hold_quit); 10642 &next_event, &finish, &hold_quit);
10643#endif 10643#endif
10644 } 10644 }
10645#else
10646 /* Clear these before the read_socket_hook can be called. */
10647 current_count = -1;
10648 current_hold_quit = NULL;
10645#endif 10649#endif
10646 10650
10647 /* The unblock_input below might try to read input, but 10651 /* The unblock_input below might try to read input, but