mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
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:

committed by
Rob Bradford

parent
8f4e39b6d7
commit
1c7a740385
@ -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;
|
||||
|
Reference in New Issue
Block a user