]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the GTK build
authorPo Lu <luangruo@yahoo.com>
Sun, 1 May 2022 01:43:08 +0000 (09:43 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 1 May 2022 01:43:08 +0000 (09:43 +0800)
* src/xterm.c (x_dnd_begin_drag_and_drop): Let GTK handle events
again.

src/xterm.c

index fd0e7cffa30ad65a23dda8e77eca4435dc105216..bb50b35c2df8badaa54101bc70b894a2b99ca554 100644 (file)
@@ -9962,6 +9962,7 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
       x_next_event_from_any_display (&next_event);
 #endif
 
+#ifndef USE_GTK
       event_display
        = x_display_info_for_display (next_event.xany.display);
 
@@ -9989,6 +9990,7 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
                             &next_event, &finish, &hold_quit);
 #endif
        }
+#endif
 
       /* The unblock_input below might try to read input, but
         XTread_socket does nothing inside a drag-and-drop event