[at-spi2-core: 1/2] registryd: force polling for modifier state




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


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