data-device: add a function to send the selection to a client
This commit adds a new exported function, weston_seat_send_selection(),
which sends the current selection to a specified client. This is
useful e.g. to implement a clipboard manager as a special client.
Reviewed-by: Daniel Stone <daniels@collabora.com>
diff --git a/src/compositor.h b/src/compositor.h
index 20109d7..f9834ba 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -436,6 +436,9 @@
void
weston_seat_set_selection(struct weston_seat *seat,
struct weston_data_source *source, uint32_t serial);
+void
+weston_seat_send_selection(struct weston_seat *seat, struct wl_client *client);
+
int
weston_pointer_start_drag(struct weston_pointer *pointer,
struct weston_data_source *source,