wayland: enable keys emitting key events on reis capability

When key events can be emitted with the Emulated Input protocol, this
can cause more keys to be supported. Update the supported keys when a
keyboard is received so some keys can be enabled immediately, without
switching the layout.

Fixes: 030ca29ddd ("wayland: add optional reis emulated input support")
This commit is contained in:
Richard Acayan 2024-10-29 22:22:33 -04:00
parent 95fe5521c2
commit 1323cada17
No known key found for this signature in database
GPG key ID: 0346F4894879DB73

View file

@ -195,6 +195,7 @@ impl Dispatcher {
device::Event::Interface { object } => {
if let Some(kbd) = object.downcast() {
self.seat.keyboard_mut().set_ei_keyboard(dev, kbd);
self.seat.button_mut().update_keys_supported();
}
},
device::Event::Name { .. } => (),