diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-08-21 18:49:44 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-09-01 19:17:53 +0200 |
commit | 77447990728d171c53cf228acf9b99c2d8d132f0 (patch) | |
tree | 66c6f1c0f60217992b24a07dc5af7d368aeec0c5 /gdk/wayland/gdkprivate-wayland.h | |
parent | 3b953041a9043d12238d8ca1b2d06a2ade702b1e (diff) | |
download | gtk+-77447990728d171c53cf228acf9b99c2d8d132f0.tar.gz |
wayland: Implement drag/source side of selections
This has been made to work similarly to X11, requests for the data device
contents are notified through GDK_SELECTION_REQUEST events, the data stored
in the GDK_SELECTION property as a reaction to that event is then stored
into the wayland selection implementation, and written to the fd when
requested/available.
https://bugzilla.gnome.org/show_bug.cgi?id=697855
Diffstat (limited to 'gdk/wayland/gdkprivate-wayland.h')
-rw-r--r-- | gdk/wayland/gdkprivate-wayland.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdk/wayland/gdkprivate-wayland.h b/gdk/wayland/gdkprivate-wayland.h index c04d2579f1..b72c7a64d7 100644 --- a/gdk/wayland/gdkprivate-wayland.h +++ b/gdk/wayland/gdkprivate-wayland.h @@ -147,6 +147,9 @@ uint32_t _gdk_wayland_device_get_implicit_grab_serial(GdkWaylandDevice *device, const GdkEvent *event); uint32_t _gdk_wayland_device_get_last_implicit_grab_serial (GdkWaylandDevice *device, GdkEventSequence **seqence); +struct wl_data_device * gdk_wayland_device_get_data_device (GdkDevice *gdk_device); +void gdk_wayland_device_set_selection (GdkDevice *gdk_device, + struct wl_data_source *source); void gdk_wayland_device_unset_touch_grab (GdkDevice *device, GdkEventSequence *sequence); @@ -201,4 +204,14 @@ void gdk_wayland_selection_set_offer (struct wl_data_offer *offer); struct wl_data_offer * gdk_wayland_selection_get_offer (void); GList * gdk_wayland_selection_get_targets (void); +void gdk_wayland_selection_store (GdkWindow *window, + GdkAtom type, + GdkPropMode mode, + const guchar *data, + gint len); +struct wl_data_source * gdk_wayland_selection_get_data_source (GdkWindow *owner, + GdkAtom selection); +void gdk_wayland_selection_unset_data_source (GdkAtom selection); + + #endif /* __GDK_PRIVATE_WAYLAND_H__ */ |