git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit626cd7e312fb0804af4128d3133e1e804c01ac3d
parent4729769739
authorIsaac Freund <[email protected]>
date2020-06-25 23:08
data-control: implement protocol

 river/Server.zig | 2 ++
 river/c.zig      | 1 +
 2 files changed, 3 insertions(+)

diff --git a/river/Server.zig b/river/Server.zig
index 5aef0f0..bf335e1 100644
--- a/river/Server.zig
+++ b/river/Server.zig
@@ -127,6 +127,8 @@ pub fn init(self: *Self) !void {
     // These all free themselves when the wl_display is destroyed
     _ = c.wlr_data_device_manager_create(self.wl_display) orelse
         return error.CantCreateWlrDataDeviceManager;
+    _ = c.wlr_data_control_manager_v1_create(self.wl_display) orelse
+        return error.CantCreateWlrDataControlManager;
     _ = c.wlr_screencopy_manager_v1_create(self.wl_display) orelse
         return error.CantCreateWlrScreencopyManager;
     _ = c.wlr_xdg_output_manager_v1_create(self.wl_display, self.root.wlr_output_layout) orelse
diff --git a/river/c.zig b/river/c.zig
index d5b5ddf..7ec3a0d 100644
--- a/river/c.zig
+++ b/river/c.zig
@@ -27,6 +27,7 @@ pub usingnamespace @cImport({
     @cInclude("wlr/types/wlr_buffer.h");
     @cInclude("wlr/types/wlr_compositor.h");
     @cInclude("wlr/types/wlr_cursor.h");
+    @cInclude("wlr/types/wlr_data_control_v1.h");
     @cInclude("wlr/types/wlr_data_device.h");
     @cInclude("wlr/types/wlr_input_device.h");
     @cInclude("wlr/types/wlr_input_inhibitor.h");