diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-08 15:23:02 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-08 15:23:02 +0200 |
| commit | 0902e048bed7cfd4a63729051db811b6c889a440 (patch) | |
| tree | 35bea59f62e6a2b09358d6345fe88fb825a4fab2 /src/Output.zig | |
| parent | ac735719cfc086c54ff939786823b29de2c24c0a (diff) | |
| download | river-0902e048bed7cfd4a63729051db811b6c889a440.tar.gz river-0902e048bed7cfd4a63729051db811b6c889a440.tar.xz | |
Refactor server setup and renderer access
Diffstat (limited to 'src/Output.zig')
| -rw-r--r-- | src/Output.zig | 4 |
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) |
