From 1323cada172eacf86bab2966538c32ff763f06a1 Mon Sep 17 00:00:00 2001 From: Richard Acayan Date: Tue, 29 Oct 2024 22:22:33 -0400 Subject: [PATCH] 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: 030ca29dddcf ("wayland: add optional reis emulated input support") --- src/wayland/dispatcher.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/dispatcher.rs b/src/wayland/dispatcher.rs index ea9de23..2075a9e 100644 --- a/src/wayland/dispatcher.rs +++ b/src/wayland/dispatcher.rs @@ -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 { .. } => (),