Merge pull request #66 from tiosgz/fix-render

This commit is contained in:
Niclas 2022-07-25 14:49:44 +00:00 committed by GitHub
commit 08b8f27590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 wlr_renderer *renderer = server->renderer;
int width;
int height;
wlr_output_effective_resolution(wlr_output, &width, &height);
wlr_renderer_begin(renderer, width, height);
wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height);
wlr_renderer_clear(renderer, desktop->bg_color);
double output_lx = 0;