aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index c7140d97..cf4b122d 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -98,11 +98,11 @@ void output_frame_notify(struct wl_listener *listener, void *data) {
struct wlr_renderer *renderer = wlr_backend_get_renderer(wlr_output->backend);
assert(renderer);
- 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_clear(renderer, state->clear_color);
wlr_output_render_software_cursors(wlr_output, NULL);
- wlr_output_swap_buffers(wlr_output, NULL, NULL);
+ wlr_output_commit(wlr_output);
wlr_renderer_end(renderer);
}