From c5dab928775cb86cc11b7e3a8493c3432e2df201 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 11 Oct 2025 12:12:49 -0400 Subject: changes --- registry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'registry.c') diff --git a/registry.c b/registry.c index 69f2370..72002e8 100644 --- a/registry.c +++ b/registry.c @@ -2,13 +2,13 @@ #include #include "./state.h" +#include "wayland.h" struct wl_registry_listener registry_listener; -void setup_registry(client_state* state) { +void setup_registry_and_globals(client_state* state) { state->registry = wl_display_get_registry(state->display); wl_registry_add_listener(state->registry, ®istry_listener, state); - wl_display_roundtrip(state->display); } // listeners @@ -23,13 +23,13 @@ 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); } else if (!strcmp(interface, wp_cursor_shape_manager_v1_interface.name)) { - state->cursor_shape_manager = wl_registry_bind( - wl_registry, name, &wp_cursor_shape_manager_v1_interface, version); + state->cursor_shape_manager = wl_registry_bind( wl_registry, name, &wp_cursor_shape_manager_v1_interface, version); } else { } -- cgit v1.2.3