mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Merge pull request #1482 from acrisci/refactor/use-frame-done
refactor: use frame done
This commit is contained in:
commit
1fbcd097ae
@ -72,12 +72,7 @@ static void output_frame_view(swayc_t *view, void *data) {
|
|||||||
struct timespec now;
|
struct timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
|
|
||||||
struct wlr_frame_callback *cb, *cnext;
|
wlr_surface_send_frame_done(surface, &now);
|
||||||
wl_list_for_each_safe(cb, cnext,
|
|
||||||
&surface->current->frame_callback_list, link) {
|
|
||||||
wl_callback_send_done(cb->resource, timespec_to_msec(&now));
|
|
||||||
wl_resource_destroy(cb->resource);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void output_frame_notify(struct wl_listener *listener, void *data) {
|
static void output_frame_notify(struct wl_listener *listener, void *data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user