examples: Modeset with a buffer

This means that for most examples, rendering code had to be extracted
so that it could be called during modeset and during a regular refresh.
This commit is contained in:
Alexander Orzechowski 2024-08-21 11:12:22 -04:00
parent 34ec9319d0
commit 9b1bdf7475
10 changed files with 147 additions and 111 deletions

View file

@ -116,6 +116,7 @@ static void server_handle_new_output(struct wl_listener *listener, void *data) {
if (mode != NULL) {
wlr_output_state_set_mode(&state, mode);
}
wlr_scene_output_build_state(output->scene_output, &state, NULL);
wlr_output_commit_state(wlr_output, &state);
wlr_output_state_finish(&state);
}