From c768309ab4b3d714bfb9ea80de09c5a6ea058a73 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Wed, 17 Jun 2020 12:44:16 -0400 Subject: [PATCH] input/keyboard: send modifiers on first keyboard enter Will fix Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=1643991. Fixes swaywm/sway#5462. --- types/seat/wlr_seat_keyboard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/seat/wlr_seat_keyboard.c b/types/seat/wlr_seat_keyboard.c index b366e0af..715bd4ba 100644 --- a/types/seat/wlr_seat_keyboard.c +++ b/types/seat/wlr_seat_keyboard.c @@ -469,6 +469,9 @@ void seat_client_create_keyboard(struct wlr_seat_client *seat_client, } wl_array_release(&keys); + + wlr_seat_keyboard_send_modifiers(seat_client->seat, + &keyboard->modifiers); } }