diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-11 12:12:49 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-11 12:12:49 -0400 |
| commit | c5dab928775cb86cc11b7e3a8493c3432e2df201 (patch) | |
| tree | 9f2322e85dc8d410b7f1a9951c2213315e0d8901 /registry.c | |
| parent | 502ffec5198dd0dbd87f8d88ff07f95f241a24f8 (diff) | |
changes
Diffstat (limited to 'registry.c')
| -rw-r--r-- | registry.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,13 +2,13 @@ #include <string.h> #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 { } |
