summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-26 01:15:55 +0100
committerMike Gorse <mgorse@suse.com>2022-09-09 10:46:34 -0500
commit5ecd06066080c665661e359174afdccfa05f3e5e (patch)
tree576327b0ffc96591a6c04a85dfb9bec82413ec52
parent2ffb12ac6b1fb584284d3061bf7bff6d43c51dd0 (diff)
downloadat-spi2-core-5ecd06066080c665661e359174afdccfa05f3e5e.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 50b44eb3..03f371df 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -1681,6 +1681,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;
}