From de68968f89a5e9b987ff441cc127010c12d8f606 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 29 Jun 2015 17:54:57 +0200 Subject: [PATCH] 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. --- gdk/wayland/gdkselection-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c index 640fa4e112..9da66cb53d 100644 --- a/gdk/wayland/gdkselection-wayland.c +++ b/gdk/wayland/gdkselection-wayland.c @@ -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; }