aboutsummaryrefslogtreecommitdiff
path: root/registry.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-11 12:12:49 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-11 12:12:49 -0400
commitc5dab928775cb86cc11b7e3a8493c3432e2df201 (patch)
tree9f2322e85dc8d410b7f1a9951c2213315e0d8901 /registry.c
parent502ffec5198dd0dbd87f8d88ff07f95f241a24f8 (diff)
changes
Diffstat (limited to 'registry.c')
-rw-r--r--registry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/registry.c b/registry.c
index 69f2370..72002e8 100644
--- a/registry.c
+++ b/registry.c
@@ -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, &registry_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 {
}