diff options
author | 2017-12-01 08:20:43 -0500 | |
---|---|---|
committer | 2017-12-01 08:20:43 -0500 | |
commit | 1fbcd097ae2841b5f8f56cf67c1e94605deb0d25 (patch) | |
tree | e2ee461a2c84d2ac09a31c67de1f0158cd0cc9d8 | |
parent | Merge pull request #1477 from acrisci/bug/set-mode (diff) | |
parent | send callbacks with send_frame_done (diff) | |
download | sway-1fbcd097ae2841b5f8f56cf67c1e94605deb0d25.tar.gz sway-1fbcd097ae2841b5f8f56cf67c1e94605deb0d25.tar.zst sway-1fbcd097ae2841b5f8f56cf67c1e94605deb0d25.zip |
Merge pull request #1482 from acrisci/refactor/use-frame-done
refactor: use frame done
-rw-r--r-- | sway/desktop/output.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 169b044b..6b9822c1 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -72,12 +72,7 @@ static void output_frame_view(swayc_t *view, void *data) { | |||
72 | struct timespec now; | 72 | struct timespec now; |
73 | clock_gettime(CLOCK_MONOTONIC, &now); | 73 | clock_gettime(CLOCK_MONOTONIC, &now); |
74 | 74 | ||
75 | struct wlr_frame_callback *cb, *cnext; | 75 | wlr_surface_send_frame_done(surface, &now); |
76 | wl_list_for_each_safe(cb, cnext, | ||
77 | &surface->current->frame_callback_list, link) { | ||
78 | wl_callback_send_done(cb->resource, timespec_to_msec(&now)); | ||
79 | wl_resource_destroy(cb->resource); | ||
80 | } | ||
81 | } | 76 | } |
82 | 77 | ||
83 | static void output_frame_notify(struct wl_listener *listener, void *data) { | 78 | static void output_frame_notify(struct wl_listener *listener, void *data) { |