summaryrefslogtreecommitdiff
path: root/tinywl.c
diff options
context:
space:
mode:
authorIsaac Freund <[email protected]>2021-12-13 17:23:47 +0100
committerIsaac Freund <[email protected]>2021-12-13 17:26:22 +0100
commitce3d4b267dfd51db134ca5d752371498961c711f (patch)
tree7b5a52c86977c1e9e155720fa81d3de618a75d04 /tinywl.c
parentbd3ba5c0e40ed921b53d0614296f796bd8ad6e7d (diff)
scene: fix wlr_scene_send_frame_done() API
This doesn't work if scene outputs are not used as the primary output of scene surfaces will always be NULL. Therefore, take a wlr_scene_output instead of separate wlr_scene and wlr_output arguments and rename the function to wlr_scene_output_send_frame_done(). The actual behavior of the function is unchanged.
Diffstat (limited to 'tinywl.c')
-rw-r--r--tinywl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinywl.c b/tinywl.c
index 581fcfc..faa0a9a 100644
--- a/tinywl.c
+++ b/tinywl.c
@@ -524,7 +524,7 @@ static void output_frame(struct wl_listener *listener, void *data) {
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
- wlr_scene_send_frame_done(scene, output->wlr_output, &now);
+ wlr_scene_output_send_frame_done(scene_output, &now);
}
static void server_new_output(struct wl_listener *listener, void *data) {