diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2017-03-18 16:27:58 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2017-03-18 16:27:58 -0400 |
| commit | 5174603687440a4fd2dfc045e34f7fcfa37ead5e (patch) | |
| tree | 23256a4f23d2c64925b3767db49d413225e1a1fe | |
| parent | a238fe00b3ffd17d5dcd4ccfc59ee7ca3671311f (diff) | |
| parent | 3babf6d20c8a335ce51a785659da77ce15769afc (diff) | |
Merge branch 'master' into master
| -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 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; } |
