gtk2/gtk2-191223-java-selection-fix-updated.patch

15 lines
611 B
Diff

Index: gtk+-2.14.4/gtk/gtkselection.c
===================================================================
--- gtk+-2.14.4.orig/gtk/gtkselection.c
+++ gtk+-2.14.4/gtk/gtkselection.c
@@ -1798,7 +1798,8 @@ gtk_selection_data_get_targets (GtkSelec
if (selection_data->length >= 0 &&
selection_data->format == 32 &&
- selection_data->type == GDK_SELECTION_TYPE_ATOM)
+ (selection_data->type == GDK_SELECTION_TYPE_ATOM ||
+ selection_data->type == gdk_atom_intern_static_string("TARGETS")))
{
if (targets)
*targets = g_memdup (selection_data->data, selection_data->length);