mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
4b051aa926
commit
2fea2fced8
8 changed files with 16 additions and 0 deletions
|
|
@ -91,6 +91,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(sample_output->output);
|
||||
}
|
||||
|
||||
static void keyboard_key_notify(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue