[at-spi2-core/gnome-41: 8/14] registryd: force polling for modifier state




commit 5ecd06066080c665661e359174afdccfa05f3e5e
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Wed Jan 26 01:15:55 2022 +0100

    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 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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]