aboutsummaryrefslogtreecommitdiff
path: root/seat.c
diff options
context:
space:
mode:
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;