[gtk+] wayland: Don't accept the "TARGETS" target on the wl_data_offer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Don't accept the "TARGETS" target on the wl_data_offer
- Date: Thu, 19 Mar 2015 15:09:12 +0000 (UTC)
commit a59fd4a9ad3f7c60ada2acd6809ad2173b5107fd
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Mar 19 15:49:04 2015 +0100
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.
gdk/wayland/gdkselection-wayland.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index 651785a..4ba016a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]