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/gdkwindow-wayland.c | |
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/gdkwindow-wayland.c')
-rw-r--r-- | gdk/wayland/gdkwindow-wayland.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index e8b2ecf2e1..f96b6b8c68 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -1949,6 +1949,8 @@ gdk_wayland_window_change_property (GdkWindow *window, const guchar *data, gint nelements) { + if (property == gdk_atom_intern_static_string ("GDK_SELECTION")) + gdk_wayland_selection_store (window, type, mode, data, nelements * (format / 8)); } static void |