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

commitaeebe687bb4dc0c42bac276c37d8b628a4f86767
parent153661b8c5
authorLeon Henrik Plickat <[email protected]>
date2020-10-06 19:53
Create wlr_viewporter

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

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");