Commit b01edc22 authored by Carlos Garnacho's avatar Carlos Garnacho

backends/x11: Do not reload keymap on new keyboard notifications

XkbNewKeyboardNotify informs the client that there is a new keyboard
driving the VCK. It is essentially meant to notify that the keyboard
possibly has a different range of HW keycodes and/or a different

But the translation of those keycodes remain the same, and we don't
do range checks or geometry checks (beyond using KEY_GRAVE as "key
under Esc", but that is hardly one). It seems we can avoid the
busywork that is releasing all our passive grabs, reloading the keymap
and regenerating the keycombos and restoring the passive grabs.

Closes: #398
parent e8bca505
Pipeline #83840 passed with stages
in 4 minutes and 53 seconds
......@@ -357,7 +357,6 @@ handle_host_xevent (MetaBackend *backend,
switch (xkb_ev->any.xkb_type)
case XkbNewKeyboardNotify:
case XkbMapNotify:
keymap_changed (backend);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment