aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-11 14:21:47 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-11 14:21:47 -0400
commit36d12796644b296f300d9daf631f7702e1d81b86 (patch)
treec9da61a4686dcc3dadc31d6ea879ef0364d0c6c7
parentc5dab928775cb86cc11b7e3a8493c3432e2df201 (diff)
finish messing with wayland initialization
-rw-r--r--main.c7
-rw-r--r--registry.c1
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);