From 0902e048bed7cfd4a63729051db811b6c889a440 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 8 May 2020 15:23:02 +0200 Subject: Refactor server setup and renderer access --- src/Output.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Output.zig') 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) -- cgit v1.2.3