mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Merge d527960f9d into 8441711990
This commit is contained in:
commit
0e6b0d101b
2 changed files with 4 additions and 1 deletions
|
|
@ -517,6 +517,7 @@ struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,
|
|||
keyboard->key_repeat_source = wl_event_loop_add_timer(server.wl_event_loop,
|
||||
handle_keyboard_repeat, keyboard);
|
||||
|
||||
sway_keyboard_configure(device->keyboard);
|
||||
return keyboard;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -577,10 +577,12 @@ static void seat_configure_keyboard(struct sway_seat *seat,
|
|||
struct sway_seat_device *seat_device) {
|
||||
if (!seat_device->keyboard) {
|
||||
sway_keyboard_create(seat, seat_device);
|
||||
} else {
|
||||
sway_keyboard_configure(seat_device->keyboard);
|
||||
}
|
||||
|
||||
struct wlr_keyboard *wlr_keyboard =
|
||||
seat_device->input_device->wlr_device->keyboard;
|
||||
sway_keyboard_configure(seat_device->keyboard);
|
||||
wlr_seat_set_keyboard(seat->wlr_seat,
|
||||
seat_device->input_device->wlr_device);
|
||||
struct sway_node *focus = seat_get_focus(seat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue