wayland: Add some dumb support for the TARGETS selection

Desktop / GNOME / GTK - Jasper St. Pierre [mecheye.net] - 3 July 2014 12:29 UTC

The way that GtkTextView et al pop up their context menu is to first query to see if the clipboard has some text, and if so, enable the Paste menu item. But since the Wayland backend hasn't had the greatest selection and clipboard code, the callback for the clipboard got dropped on the floor.

Add some simple code to respond to the TARGETS selection.

This makes right-clicking on a GtkTextView work fine.

f4b212a wayland: Add some dumb support for the TARGETS selection
gdk/wayland/gdkdevice-wayland.c | 17 ++++++++++-------
gtk/gtkclipboard-wayland.c | 18 ++++++++++++++++++
2 files changed, 28 insertions(+), 7 deletions(-)

Upstream: git.gnome.org


  • Share