From b46f37bc77ea7e5ee54cafda03d7badcde324625 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 26 Jan 2022 01:15:55 +0100 Subject: registryd: force polling for modifier state get_modifier_state() was only getting the last state obtained through mouse polling, but if not mouse device event listener was set up, no such polling is performed. We can however make get_modifier_state force polling for the mouse position, to be sure to get the last modifier state. This allows #50 to be fixed even without a mouse device event listener. --- registryd/deviceeventcontroller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c index 942f383b..a85401c9 100644 --- a/registryd/deviceeventcontroller.c +++ b/registryd/deviceeventcontroller.c @@ -1675,6 +1675,7 @@ impl_get_device_event_listeners (DBusConnection *bus, static unsigned get_modifier_state (SpiDEController *controller) { + spi_dec_poll_mouse_moved (controller); return mouse_mask_state; } -- cgit v1.2.1