WIP testing non-callback

This commit is contained in:
Rakarake 2026-01-15 23:07:37 +01:00
parent 4806cff440
commit 33ceed2d22
3 changed files with 38 additions and 3 deletions

View file

@ -295,9 +295,13 @@ void wayland_init(struct client_state *state, int output_type) {
}
egl_init(state);
// TODO fix frame callbacks for all surfaces
}
/// Swaps front/backbuffers and dispatches pending wayland commands.
// TODO move logic to wait_for_event
void commit(struct client_state *state) {
struct surface_list *next = state->surface_list;
while (next != NULL) {
@ -316,3 +320,7 @@ void commit(struct client_state *state) {
}
}
void wait_for_event(struct client_state *state, struct event event) {
wl_display_dispatch(state->wl_display);
}