diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-11 11:23:17 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-11 11:23:17 -0400 |
| commit | 502ffec5198dd0dbd87f8d88ff07f95f241a24f8 (patch) | |
| tree | 0351c20bf22d0b6ad55994d0ef4867c3518fdc0b /seat.c | |
| parent | a4e1bdbf38ac1e1f293a778e74f4773e356246aa (diff) | |
clean up and separate from registry
Diffstat (limited to 'seat.c')
| -rw-r--r-- | seat.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |
