aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-10-06 19:41:11 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-10-06 20:19:07 +0200
commit1e58e8b7f83be091f9e503b472202892ee8100c5 (patch)
tree0f3e106741fe3776ecfadbce5e718ca3e9e399ce
parent18f5fcb1ef52e14c774a596050ea7fca0cc6a7e5 (diff)
downloadriver-1e58e8b7f83be091f9e503b472202892ee8100c5.tar.gz
river-1e58e8b7f83be091f9e503b472202892ee8100c5.tar.xz
Create wlr_export_dmabuf_manager_v1
-rw-r--r--river/Server.zig1
-rw-r--r--river/c.zig1
2 files changed, 2 insertions, 0 deletions
diff --git a/river/Server.zig b/river/Server.zig
index c2eb0c8..6107f47 100644
--- a/river/Server.zig
+++ b/river/Server.zig
@@ -133,6 +133,7 @@ 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.OutOfMemory;
_ = c.wlr_data_control_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
+ _ = c.wlr_export_dmabuf_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
_ = c.wlr_gamma_control_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
_ = c.wlr_screencopy_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
_ = 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 f9814e6..dd9684c 100644
--- a/river/c.zig
+++ b/river/c.zig
@@ -34,6 +34,7 @@ pub usingnamespace @cImport({
@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_export_dmabuf_v1.h");
@cInclude("wlr/types/wlr_gamma_control_v1.h");
@cInclude("wlr/types/wlr_gtk_primary_selection.h");
@cInclude("wlr/types/wlr_idle.h");