compositor: Add a clipboard manager
We use the selection signal to get a callback when somebody sets a
selection (including the X server proxy) and then copy the contents
of the first mime type. If the selection is cleared (when the client
dies), we set a new selection with that contents.
diff --git a/src/compositor.c b/src/compositor.c
index b299e03..797ab99 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2454,6 +2454,8 @@
seat->new_drag_icon_listener.notify = device_handle_new_drag_icon;
wl_signal_add(&seat->seat.drag_icon_signal,
&seat->new_drag_icon_listener);
+
+ clipboard_create(seat);
}
WL_EXPORT void