From 4b7246685f7fb241887ad5fee60c7d83a19823e1 Mon Sep 17 00:00:00 2001 From: Marten Ringwelski Date: Mon, 16 Nov 2020 09:17:39 +0100 Subject: [PATCH] code: Fix render call width and height --- river/render.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/river/render.zig b/river/render.zig index 0326580..82c2846 100644 --- a/river/render.zig +++ b/river/render.zig @@ -57,7 +57,8 @@ pub fn renderOutput(output: *Output) void { c.wlr_output_effective_resolution(output.wlr_output, &width, &height); // Begin the renderer (calls glViewport and some other GL sanity checks) - c.wlr_renderer_begin(wlr_renderer, width, height); + // Here we don't want the output_effective_resolution since we want to render the whole output + c.wlr_renderer_begin(wlr_renderer, output.wlr_output.width, output.wlr_output.height); // Find the first visible fullscreen view in the stack if there is one var it = ViewStack(View).iter(output.views.first, .forward, output.current.tags, renderFilter);