wayland: Implement drop/destination side of selections

This implementation makes the destination side of selections work
similarly to X11's, gdk_selection_convert() triggers data fetching,
which is notified through GDK_SELECTION_NOTIFY events on arrival,
the buffered data is then available through gdk_selection_property_get().

https://bugzilla.gnome.org/show_bug.cgi?id=697855
This commit is contained in:
Carlos Garnacho
2014-08-21 18:34:01 +02:00
parent 32bf03c053
commit 3b953041a9
4 changed files with 479 additions and 1 deletions

View File

@ -39,6 +39,8 @@
G_BEGIN_DECLS
typedef struct _GdkWaylandSelection GdkWaylandSelection;
struct _GdkWaylandDisplay
{
GdkDisplay parent_instance;
@ -72,6 +74,8 @@ struct _GdkWaylandDisplay
int compositor_version;
struct xkb_context *xkb_context;
GdkWaylandSelection *selection;
};
struct _GdkWaylandDisplayClass