aboutsummaryrefslogtreecommitdiff
path: root/src/Output.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Output.zig')
-rw-r--r--src/Output.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Output.zig b/src/Output.zig
index a0ee749..cb5cba4 100644
--- a/src/Output.zig
+++ b/src/Output.zig
@@ -143,6 +143,10 @@ pub fn deinit(self: *Self) void {
}
}
+pub fn getRenderer(self: Self) *c.wlr_renderer {
+ return c.river_wlr_backend_get_renderer(self.wlr_output.backend);
+}
+
/// Add a new view to the output. arrangeViews() will be called by the view
/// when it is mapped. The surface argument must be a c.wlr_xdg_surface or
/// c.wlr_xwayland_surface (if xwayland is enabled)