Wayland: Add key repeat

Add support for repeating keys to the Wayland input backend.
Unfortunately the repeat delay/interval is hardcoded into the Clutter
backend, as Wayland doesn't yet tell clients what the global values
should be.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Daniel Stone
2012-08-30 15:08:43 -07:00
committed by Rob Bradford
parent 8f4e39b6d7
commit 1c7a740385
2 changed files with 63 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#ifndef __CLUTTER_INPUT_DEVICE_WAYLAND_H__
#define __CLUTTER_INPUT_DEVICE_WAYLAND_H__
#include <xkbcommon/xkbcommon.h>
#include <glib-object.h>
#include <clutter/clutter-event.h>
@ -48,6 +49,10 @@ struct _ClutterInputDeviceWayland
struct xkb_state *xkb;
gint has_pointer;
gint has_keyboard;
xkb_keycode_t repeat_key;
guint repeat_time;
guint repeat_source;
gboolean is_initial_repeat;
};
GType clutter_input_device_wayland_get_type (void) G_GNUC_CONST;