[clutter/clutter-1.20] evdev: Set button modifier state to input devices.



commit f6fd02970c29e58c217ef5563d8d5c53be81acd9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jul 11 15:30:29 2014 +0200

    evdev: Set button modifier state to input devices.
    
    Input devices must get the proper button state, in addition to keyboard
    modifiers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733062

 clutter/evdev/clutter-device-manager-evdev.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index c8a807b..eaacc3a 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/evdev/clutter-device-manager-evdev.c
@@ -645,7 +645,8 @@ clutter_event_dispatch (GSource     *g_source,
       _clutter_stage_queue_event (event->any.stage, event, FALSE);
 
       /* update the device states *after* the event */
-      event_state = xkb_state_serialize_mods (seat->xkb, XKB_STATE_MODS_EFFECTIVE);
+      event_state = seat->button_state |
+        xkb_state_serialize_mods (seat->xkb, XKB_STATE_MODS_EFFECTIVE);
       _clutter_input_device_set_state (seat->core_pointer, event_state);
       _clutter_input_device_set_state (seat->core_keyboard, event_state);
     }


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