summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-26 01:15:55 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-26 01:17:07 +0100
commitb46f37bc77ea7e5ee54cafda03d7badcde324625 (patch)
tree879caaad8c2a9ce93ac937dc830eba10517aa652
parentb22b7dcfcb34f01218de0f6aa0d10b4d34fb07aa (diff)
downloadat-spi2-core-b46f37bc77ea7e5ee54cafda03d7badcde324625.tar.gz
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.
-rw-r--r--registryd/deviceeventcontroller.c1
1 files changed, 1 insertions, 0 deletions
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;
}