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.

(cherry picked from commit 2fea2fced8)
This commit is contained in:
Scott Anderson 2020-02-08 19:09:41 +13:00 committed by Simon Ser
parent 422d9fdc4a
commit 27f9852e21
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
8 changed files with 16 additions and 0 deletions

View file

@ -171,6 +171,8 @@ static void new_output_notify(struct wl_listener *listener, void *data) {
cursor->cursor->y);
}
wl_list_insert(&sample->outputs, &sample_output->link);
wlr_output_commit(output);
}
static void keyboard_key_notify(struct wl_listener *listener, void *data) {