Merge pull request #30 from tiosgz/render-fix

[output render] Assign to variables before they are used by wlroots
This commit is contained in:
buffet 2021-07-30 17:51:51 +00:00 committed by GitHub
commit ea920e8044

View file

@ -130,8 +130,8 @@ output_frame_notify(struct wl_listener *listener, void *data)
wlr_renderer_begin(renderer, width, height);
wlr_renderer_clear(renderer, (float[]){0.1f, 0.1f, 0.1f, 1.0f});
double output_lx;
double output_ly;
double output_lx = 0;
double output_ly = 0;
wlr_output_layout_output_coords(
output_layout, wlr_output, &output_lx, &output_ly);