mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
Merge pull request #1121 from zandrmartin/registry-keyboard-caps
add missing ! for wl seat keyboard caps
This commit is contained in:
commit
b01e8dea58
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue