aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-06-20 18:48:52 +0200
committerDrew DeVault <sir@cmpwn.com>2020-06-20 11:05:54 -0600
commitd5530b26d7dfc142ee1f37020436d11696864fd3 (patch)
tree5667227e1b4192a466d45f719298588597076315 /examples/pointer.c
parentc93016028680a0ce2bac2f2b8eeff5e5c1ea467e (diff)
examples/pointer: fix wlr_renderer_end call order
Calling wlr_renderer_end after wlr_output_commit would make an assertion fail.
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index 520742d7..a6080716 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -101,8 +101,8 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
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_commit(wlr_output);
wlr_renderer_end(renderer);
+ wlr_output_commit(wlr_output);
}
static void handle_cursor_motion(struct wl_listener *listener, void *data) {