diff options
-rw-r--r-- | wayland/registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland/registry.c b/wayland/registry.c index 44afb146..43e41f0c 100644 --- a/wayland/registry.c +++ b/wayland/registry.c | |||
@@ -182,7 +182,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *seat, | |||
182 | enum wl_seat_capability caps) { | 182 | enum wl_seat_capability caps) { |
183 | struct registry *reg = data; | 183 | struct registry *reg = data; |
184 | 184 | ||
185 | if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->pointer) { | 185 | if ((caps & WL_SEAT_CAPABILITY_POINTER) && !reg->pointer) { |
186 | reg->pointer = wl_seat_get_pointer(reg->seat); | 186 | reg->pointer = wl_seat_get_pointer(reg->seat); |
187 | } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) { | 187 | } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) { |
188 | wl_pointer_destroy(reg->pointer); | 188 | wl_pointer_destroy(reg->pointer); |