Assign to variables before they are used by wlroots

This commit is contained in:
tiosgz 2021-05-14 15:43:56 +00:00
parent fc80555c1c
commit 9b99677562

View file

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