|
|
@ -517,7 +517,7 @@ static void handle_key_event(struct sway_keyboard *keyboard,
|
|
|
|
&keyboard->state_pressed_sent, event->keycode,
|
|
|
|
&keyboard->state_pressed_sent, event->keycode,
|
|
|
|
event->state, keyinfo.keycode, 0);
|
|
|
|
event->state, keyinfo.keycode, 0);
|
|
|
|
if (pressed_sent) {
|
|
|
|
if (pressed_sent) {
|
|
|
|
wlr_seat_set_keyboard(wlr_seat, wlr_device);
|
|
|
|
wlr_seat_set_keyboard(wlr_seat, wlr_device->keyboard);
|
|
|
|
wlr_seat_keyboard_notify_key(wlr_seat, event->time_msec,
|
|
|
|
wlr_seat_keyboard_notify_key(wlr_seat, event->time_msec,
|
|
|
|
event->keycode, event->state);
|
|
|
|
event->keycode, event->state);
|
|
|
|
handled = true;
|
|
|
|
handled = true;
|
|
|
@ -542,7 +542,7 @@ static void handle_key_event(struct sway_keyboard *keyboard,
|
|
|
|
update_shortcut_state(
|
|
|
|
update_shortcut_state(
|
|
|
|
&keyboard->state_pressed_sent, event->keycode, event->state,
|
|
|
|
&keyboard->state_pressed_sent, event->keycode, event->state,
|
|
|
|
keyinfo.keycode, 0);
|
|
|
|
keyinfo.keycode, 0);
|
|
|
|
wlr_seat_set_keyboard(wlr_seat, wlr_device);
|
|
|
|
wlr_seat_set_keyboard(wlr_seat, wlr_device->keyboard);
|
|
|
|
wlr_seat_keyboard_notify_key(wlr_seat, event->time_msec,
|
|
|
|
wlr_seat_keyboard_notify_key(wlr_seat, event->time_msec,
|
|
|
|
event->keycode, event->state);
|
|
|
|
event->keycode, event->state);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -670,7 +670,7 @@ static void handle_modifier_event(struct sway_keyboard *keyboard) {
|
|
|
|
&wlr_device->keyboard->modifiers);
|
|
|
|
&wlr_device->keyboard->modifiers);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
struct wlr_seat *wlr_seat = keyboard->seat_device->sway_seat->wlr_seat;
|
|
|
|
struct wlr_seat *wlr_seat = keyboard->seat_device->sway_seat->wlr_seat;
|
|
|
|
wlr_seat_set_keyboard(wlr_seat, wlr_device);
|
|
|
|
wlr_seat_set_keyboard(wlr_seat, wlr_device->keyboard);
|
|
|
|
wlr_seat_keyboard_notify_modifiers(wlr_seat,
|
|
|
|
wlr_seat_keyboard_notify_modifiers(wlr_seat,
|
|
|
|
&wlr_device->keyboard->modifiers);
|
|
|
|
&wlr_device->keyboard->modifiers);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1086,7 +1086,7 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
struct wlr_seat *seat = keyboard->seat_device->sway_seat->wlr_seat;
|
|
|
|
struct wlr_seat *seat = keyboard->seat_device->sway_seat->wlr_seat;
|
|
|
|
wlr_seat_set_keyboard(seat, wlr_device);
|
|
|
|
wlr_seat_set_keyboard(seat, wlr_device->keyboard);
|
|
|
|
|
|
|
|
|
|
|
|
wl_list_remove(&keyboard->keyboard_key.link);
|
|
|
|
wl_list_remove(&keyboard->keyboard_key.link);
|
|
|
|
wl_signal_add(&wlr_device->keyboard->events.key, &keyboard->keyboard_key);
|
|
|
|
wl_signal_add(&wlr_device->keyboard->events.key, &keyboard->keyboard_key);
|
|
|
|