aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-06-17 12:44:16 -0400
committerSimon Ser <contact@emersion.fr>2020-06-17 18:54:38 +0200
commitc768309ab4b3d714bfb9ea80de09c5a6ea058a73 (patch)
tree927a459bc946d06395a294f9c25e069d5a9c3ca5
parent9e68ed21599661f75f3b73e3e698ab8828341a18 (diff)
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.
-rw-r--r--types/seat/wlr_seat_keyboard.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}