mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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:
parent
50178ce014
commit
de68968f89
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user