From 36d12796644b296f300d9daf631f7702e1d81b86 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 11 Oct 2025 14:21:47 -0400 Subject: finish messing with wayland initialization --- main.c | 7 +++---- registry.c | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 9627cb5..a6e261d 100644 --- a/main.c +++ b/main.c @@ -14,14 +14,13 @@ int main() { return 0; } - // set up globals + // bind globals and roundtrip setup_registry_and_globals(&state); wl_display_roundtrip(state.display); - // create non global objects + // set up other objects and roundtrip + setup_seat(&state); create_surface(&state); - - // roundtrip to recieve the rest of the events wl_display_roundtrip(state.display); // set up graphics diff --git a/registry.c b/registry.c index 72002e8..d872e4c 100644 --- a/registry.c +++ b/registry.c @@ -23,7 +23,6 @@ void global(void *data, struct wl_registry *wl_registry, uint32_t name, const ch } else if (!strcmp(interface, wl_seat_interface.name)) { state->seat = wl_registry_bind(state->registry, name, &wl_seat_interface, 1); - setup_seat(state); } else if (!strcmp(interface, zwlr_layer_shell_v1_interface.name)) { state->layer_shell = wl_registry_bind(wl_registry, name, &zwlr_layer_shell_v1_interface, version); -- cgit v1.2.3