mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Made compilable with wlroots 0.6.0
This commit is contained in:
parent
482d0a92f5
commit
b7ec9e7474
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ void output_frame_notify(struct wl_listener *listener, void *data) {
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
|
|
||||||
wlr_output_make_current(wlr_output, NULL);
|
wlr_output_attach_render(wlr_output, NULL);
|
||||||
wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height);
|
wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height);
|
||||||
|
|
||||||
float color[4] = {0.4f, 0.4f, 0.4f, 1.0f};
|
float color[4] = {0.4f, 0.4f, 0.4f, 1.0f};
|
||||||
|
|
@ -35,7 +35,7 @@ void output_frame_notify(struct wl_listener *listener, void *data) {
|
||||||
wlr_surface_send_frame_done(surface, &now);
|
wlr_surface_send_frame_done(surface, &now);
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
wlr_output_commit(wlr_output);
|
||||||
wlr_renderer_end(renderer);
|
wlr_renderer_end(renderer);
|
||||||
output->last_frame = now;
|
output->last_frame = now;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue