aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6107f47..4582999 100644
--- a/river/Server.zig
+++ b/river/Server.zig
@@ -136,6 +136,7 @@ pub fn init(self: *Self) !void {
_ = 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_viewporter_create(self.wl_display) orelse return error.OutOfMemory;
_ = c.wlr_xdg_output_manager_v1_create(self.wl_display, self.root.wlr_output_layout) orelse
return error.OutOfMemory;
}
diff --git a/river/c.zig b/river/c.zig
index dd9684c..e772be9 100644
--- a/river/c.zig
+++ b/river/c.zig
@@ -50,6 +50,7 @@ pub usingnamespace @cImport({
@cInclude("wlr/types/wlr_primary_selection_v1.h");
@cInclude("wlr/types/wlr_screencopy_v1.h");
@cInclude("wlr/types/wlr_seat.h");
+ @cInclude("wlr/types/wlr_viewporter.h");
@cInclude("wlr/types/wlr_xcursor_manager.h");
@cInclude("wlr/types/wlr_xdg_decoration_v1.h");
@cInclude("wlr/types/wlr_xdg_output_v1.h");