summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2012-10-12 15:23:03 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2012-10-13 18:13:14 +0100
commit51ec615ba17128f2e7fec0c32cddf4e1bd8f751b (patch)
treec341bf5366bef190c75b9fd7d4f54b418cbeb658
parent431eb950b90938e39704cced868d002822467843 (diff)
downloadclutter-51ec615ba17128f2e7fec0c32cddf4e1bd8f751b.tar.gz
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>
-rw-r--r--clutter/wayland/clutter-input-device-wayland.c1
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 39ab989f2..4ef040714 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;
}
/**