mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
scene_graph: use wlr_scene_output_send_frame_done
This commit is contained in:
parent
1bd0ea3a80
commit
8656c77248
1 changed files with 1 additions and 5 deletions
|
@ -64,11 +64,7 @@ static void output_handle_frame(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
|
wlr_scene_output_send_frame_done(output->scene_output, &now);
|
||||||
struct surface *surface;
|
|
||||||
wl_list_for_each(surface, &output->server->surfaces, link) {
|
|
||||||
wlr_surface_send_frame_done(surface->wlr, &now);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void server_handle_new_output(struct wl_listener *listener, void *data) {
|
static void server_handle_new_output(struct wl_listener *listener, void *data) {
|
||||||
|
|
Loading…
Reference in a new issue