]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix initialization of `hold_quit' during DND
authorPo Lu <luangruo@yahoo.com>
Tue, 31 May 2022 02:15:29 +0000 (10:15 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 31 May 2022 02:15:29 +0000 (10:15 +0800)
* src/xterm.c (x_dnd_begin_drag_and_drop): Use `EVENT_INIT'
instead of just setting type to NO_EVENT.

src/xterm.c

index f6bb97b2f8981ef3579dbfd4f2b8dc8ad3e2dd61..29991de21deeaa8f02996922e6d497654ca61a38 100644 (file)
@@ -10597,7 +10597,7 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
 
   while (x_dnd_in_progress || x_dnd_waiting_for_finish)
     {
-      hold_quit.kind = NO_EVENT;
+      EVENT_INIT (hold_quit);
 #ifdef USE_GTK
       current_finish = X_EVENT_NORMAL;
       current_hold_quit = &hold_quit;