wayland: Don't accept the "TARGETS" target on the wl_data_offer
This is handled separately through the data already cached from the wl_data_offer.offer handler, we can avoid this request entirely then.
This commit is contained in:
parent
4d0e1e0b88
commit
a59fd4a9ad
@ -896,9 +896,10 @@ _gdk_wayland_display_convert_selection (GdkDisplay *display,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_data_offer_accept (wayland_selection->offer,
|
if (target != gdk_atom_intern_static_string ("TARGETS"))
|
||||||
_gdk_wayland_display_get_serial (GDK_WAYLAND_DISPLAY (display)),
|
wl_data_offer_accept (wayland_selection->offer,
|
||||||
gdk_atom_name (target));
|
_gdk_wayland_display_get_serial (GDK_WAYLAND_DISPLAY (display)),
|
||||||
|
gdk_atom_name (target));
|
||||||
|
|
||||||
buffer_data = g_hash_table_lookup (wayland_selection->selection_buffers,
|
buffer_data = g_hash_table_lookup (wayland_selection->selection_buffers,
|
||||||
target);
|
target);
|
||||||
|
Loading…
Reference in New Issue
Block a user