* src/xterm.c (handle_one_xevent): Respect finish when
dispatching copy.
if (popup_activated ()
&& xev->evtype == XI_ButtonRelease)
- {
- *finish = X_EVENT_DROP;
- gtk_main_do_event (copy);
- gdk_event_free (copy);
- goto XI_OTHER;
- }
-
- gtk_main_do_event (copy);
- gdk_event_free (copy);
+ goto XI_OTHER;
#endif
#ifdef HAVE_XINPUT2_1
}
unblock_input ();
#endif /* USE_X_TOOLKIT */
+#if defined USE_GTK && !defined HAVE_GTK3 && defined HAVE_XINPUT2
+ if (*finish != X_EVENT_DROP && copy)
+ {
+ gtk_main_do_event (copy);
+ *finish = X_EVENT_DROP;
+ }
+
+ if (copy)
+ gdk_event_free (copy);
+#endif
break;
}