From 6f9ecd4edaff143b9d0e761e4b3c7fcd9d7a0a32 Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Tue, 6 Oct 2020 19:53:58 +0200 Subject: [PATCH] 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");