diff options
| -rw-r--r-- | main.c | 7 | ||||
| -rw-r--r-- | registry.c | 1 |
2 files changed, 3 insertions, 5 deletions
@@ -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 @@ -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); |
