wayland: Return the right type atom on gdk_selection_property_get()

We mistakenly forced the "STRING" type, which was able to confuse higher
layer helpers like gtk_selection_data_get_uris(). This fixes a crash
happening anytime a drop is attempted on a GtkPlacesSidebar.
This commit is contained in:
Carlos Garnacho 2015-06-29 17:54:57 +02:00
parent 50178ce014
commit de68968f89

View File

@ -991,7 +991,7 @@ _gdk_wayland_display_get_selection_property (GdkDisplay *display,
else
{
if (ret_type)
*ret_type = GDK_SELECTION_TYPE_STRING;
*ret_type = buffer_data->target;
if (ret_format)
*ret_format = 8;
}