aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZandr Martin <zandrmartin@gmail.com>2017-03-18 11:29:02 -0400
committerZandr Martin <zandrmartin@gmail.com>2017-03-18 11:29:02 -0400
commit2d2ce91883a707974b8fa78b349b2a762897cd9a (patch)
tree5f34a7f6fb704b95a1ab493d16d70cb5713a7e25
parentec50b92bb43af7fc17f3c6d786bcbb585f673223 (diff)
add missing ! for wl seat caps
-rw-r--r--wayland/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland/registry.c b/wayland/registry.c
index 1ebc46e7..2df605a8 100644
--- a/wayland/registry.c
+++ b/wayland/registry.c
@@ -193,7 +193,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *seat,
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->keyboard) {
reg->keyboard = wl_seat_get_keyboard(reg->seat);
wl_keyboard_add_listener(reg->keyboard, &keyboard_listener, reg);
- } else if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && reg->keyboard) {
+ } else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && reg->keyboard) {
wl_keyboard_destroy(reg->keyboard);
reg->keyboard = NULL;
}