diff options
author | 2017-03-18 16:17:11 -0400 | |
---|---|---|
committer | 2017-03-18 16:17:11 -0400 | |
commit | b01e8dea5866d4fb0ff0823511d47d223876fe07 (patch) | |
tree | 5f34a7f6fb704b95a1ab493d16d70cb5713a7e25 /wayland | |
parent | Merge pull request #1117 from jnsaff/master (diff) | |
parent | add missing ! for wl seat caps (diff) | |
download | sway-b01e8dea5866d4fb0ff0823511d47d223876fe07.tar.gz sway-b01e8dea5866d4fb0ff0823511d47d223876fe07.tar.zst sway-b01e8dea5866d4fb0ff0823511d47d223876fe07.zip |
Merge pull request #1121 from zandrmartin/registry-keyboard-caps
add missing ! for wl seat keyboard caps
Diffstat (limited to 'wayland')
-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, | |||
193 | if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->keyboard) { | 193 | if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->keyboard) { |
194 | reg->keyboard = wl_seat_get_keyboard(reg->seat); | 194 | reg->keyboard = wl_seat_get_keyboard(reg->seat); |
195 | wl_keyboard_add_listener(reg->keyboard, &keyboard_listener, reg); | 195 | wl_keyboard_add_listener(reg->keyboard, &keyboard_listener, reg); |
196 | } else if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && reg->keyboard) { | 196 | } else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && reg->keyboard) { |
197 | wl_keyboard_destroy(reg->keyboard); | 197 | wl_keyboard_destroy(reg->keyboard); |
198 | reg->keyboard = NULL; | 198 | reg->keyboard = NULL; |
199 | } | 199 | } |