diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-10-11 10:37:40 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-10-17 14:24:46 +0000 |
commit | 7b3ec2816e2ba0b225f38a75ca76564e7367c89b (patch) | |
tree | 4c7dc073ff6b04d780a254f9de5949736088e660 /src/client/qwaylandinputdevice_p.h | |
parent | 0761173a046f8f10cc185cff9c524ae6a5284556 (diff) | |
download | qtwayland-7b3ec2816e2ba0b225f38a75ca76564e7367c89b.tar.gz |
Client: Set key repeat rate and delay from the repeat_info event
[ChangeLog][QPA plugin] Clients now follow the keyboard key repeat delay and
interval configured by the compositor.
Change-Id: I8a88d341a2bb648d70f95494fe19e941273ae31b
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'src/client/qwaylandinputdevice_p.h')
-rw-r--r-- | src/client/qwaylandinputdevice_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylandinputdevice_p.h b/src/client/qwaylandinputdevice_p.h index e1f0f507..d1ff0da2 100644 --- a/src/client/qwaylandinputdevice_p.h +++ b/src/client/qwaylandinputdevice_p.h @@ -204,6 +204,7 @@ public: uint32_t mods_latched, uint32_t mods_locked, uint32_t group) override; + void keyboard_repeat_info(int32_t rate, int32_t delay) override; QWaylandInputDevice *mParent = nullptr; QPointer<QWaylandWindow> mFocus; @@ -219,6 +220,8 @@ public: int mRepeatKey; uint32_t mRepeatCode; uint32_t mRepeatTime; + int mRepeatRate = 25; + int mRepeatDelay = 400; QString mRepeatText; #if QT_CONFIG(xkbcommon_evdev) xkb_keysym_t mRepeatSym; |