From 4e6eb023e08a9afba7fedd18940d42b86844170b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 1 May 2022 09:43:08 +0800 Subject: [PATCH] Fix the GTK build * src/xterm.c (x_dnd_begin_drag_and_drop): Let GTK handle events again. --- src/xterm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index fd0e7cffa30..bb50b35c2df 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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 -- 2.39.2