diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c index 651785a3ed..4ba016a8ce 100644 --- a/gdk/wayland/gdkselection-wayland.c +++ b/gdk/wayland/gdkselection-wayland.c @@ -896,9 +896,10 @@ _gdk_wayland_display_convert_selection (GdkDisplay *display, return; } - wl_data_offer_accept (wayland_selection->offer, - _gdk_wayland_display_get_serial (GDK_WAYLAND_DISPLAY (display)), - gdk_atom_name (target)); + if (target != gdk_atom_intern_static_string ("TARGETS")) + wl_data_offer_accept (wayland_selection->offer, + _gdk_wayland_display_get_serial (GDK_WAYLAND_DISPLAY (display)), + gdk_atom_name (target)); buffer_data = g_hash_table_lookup (wayland_selection->selection_buffers, target);