[clutter/clutter-1.12] wayland: Initialise the repeat key to the expected default value



commit 51ec615ba17128f2e7fec0c32cddf4e1bd8f751b
Author: Rob Bradford <rob linux intel com>
Date:   Fri Oct 12 15:23:03 2012 +0100

    wayland: Initialise the repeat key to the expected default value
    
    The code for handling key repeats (and in particular stopping on focus loss)
    assumes that the repeat key is set to XKB_KEYCODE_INVALID in the default case.
    (cherry picked from commit eb61e372b072400c419967c020b117af48357f79)
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 clutter/wayland/clutter-input-device-wayland.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/wayland/clutter-input-device-wayland.c b/clutter/wayland/clutter-input-device-wayland.c
index 39ab989..4ef0407 100644
--- a/clutter/wayland/clutter-input-device-wayland.c
+++ b/clutter/wayland/clutter-input-device-wayland.c
@@ -518,6 +518,7 @@ clutter_input_device_wayland_class_init (ClutterInputDeviceWaylandClass *klass)
 static void
 clutter_input_device_wayland_init (ClutterInputDeviceWayland *self)
 {
+  self->repeat_key = XKB_KEYCODE_INVALID;
 }
 
 /**



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