From 2fea2fced8350ce52b3ea9c2d3f62797f7e61b56 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sat, 8 Feb 2020 19:09:41 +1300 Subject: 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. --- examples/output-layout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/output-layout.c') diff --git a/examples/output-layout.c b/examples/output-layout.c index 2a1cc320..c9ca53a4 100644 --- a/examples/output-layout.c +++ b/examples/output-layout.c @@ -169,6 +169,8 @@ static void new_output_notify(struct wl_listener *listener, void *data) { sample_output->frame.notify = output_frame_notify; wl_signal_add(&output->events.destroy, &sample_output->destroy); sample_output->destroy.notify = output_remove_notify; + + wlr_output_commit(output); } static void keyboard_key_notify(struct wl_listener *listener, void *data) { -- cgit v1.2.3