aboutsummaryrefslogtreecommitdiff
path: root/seat.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-11 11:23:17 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-11 11:23:17 -0400
commit502ffec5198dd0dbd87f8d88ff07f95f241a24f8 (patch)
tree0351c20bf22d0b6ad55994d0ef4867c3518fdc0b /seat.c
parenta4e1bdbf38ac1e1f293a778e74f4773e356246aa (diff)
clean up and separate from registry
Diffstat (limited to 'seat.c')
-rw-r--r--seat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/seat.c b/seat.c
index 6199f13..a995066 100644
--- a/seat.c
+++ b/seat.c
@@ -4,11 +4,13 @@
struct wl_seat_listener seat_listener;
-void setup_seat(client_state* state, uint32_t name) {
- state->seat = wl_registry_bind(state->registry, name, &wl_seat_interface, 1);
+void setup_seat(client_state* state) {
wl_seat_add_listener(state->seat, &seat_listener, state);
+ wl_display_roundtrip(state->display);
}
+// listeners
+
void capabilities(void *data, struct wl_seat *wl_seat, uint32_t capabilities) {
client_state* state = data;