diff options
author | Scott Anderson <scott@anderso.nz> | 2020-02-08 19:09:41 +1300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-08 11:38:44 +0100 |
commit | 2fea2fced8350ce52b3ea9c2d3f62797f7e61b56 (patch) | |
tree | 9a98e0c8c551fd07ed9ccc1335c6c9982a16ad24 /examples/pointer.c | |
parent | 4b051aa926aa37b99f586b47caab1dcdfddfee65 (diff) |
examples: Fix compositor-examples
Due to the way the wlr_output API was changed, these examples would
never get a frame event to start the rendering loop. We now commit the
outputs to start it.
Diffstat (limited to 'examples/pointer.c')
-rw-r--r-- | examples/pointer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/pointer.c b/examples/pointer.c index 5e137a1a..520742d7 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -265,6 +265,8 @@ static void new_output_notify(struct wl_listener *listener, void *data) { wlr_xcursor_manager_load(sample->xcursor_manager, output->scale); wlr_xcursor_manager_set_cursor_image(sample->xcursor_manager, "left_ptr", sample->cursor); + + wlr_output_commit(output); } |