Merge pull request #66 from tiosgz/fix-render

This commit is contained in:
buffet 2022-07-25 14:49:44 +00:00 committed by GitHub
commit a60d250380

View file

@ -194,11 +194,7 @@ output_frame_notify(struct wl_listener *listener, void *data)
struct kiwmi_server *server = wl_container_of(desktop, server, desktop); struct kiwmi_server *server = wl_container_of(desktop, server, desktop);
struct wlr_renderer *renderer = server->renderer; struct wlr_renderer *renderer = server->renderer;
int width; wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height);
int height;
wlr_output_effective_resolution(wlr_output, &width, &height);
wlr_renderer_begin(renderer, width, height);
wlr_renderer_clear(renderer, desktop->bg_color); wlr_renderer_clear(renderer, desktop->bg_color);
double output_lx = 0; double output_lx = 0;