From a99afe6a7075c962da72b140f02e18318052d833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B8rum?= Date: Fri, 19 Jun 2020 22:02:23 +0100 Subject: Implement key repeat --- include/seat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/seat.h b/include/seat.h index c79afcd..4775c57 100644 --- a/include/seat.h +++ b/include/seat.h @@ -1,6 +1,11 @@ #ifndef _SWAYLOCK_SEAT_H #define _SWAYLOCK_SEAT_H #include +#include +#include + +struct loop; +struct loop_timer; struct swaylock_xkb { bool caps_lock; @@ -14,6 +19,11 @@ struct swaylock_seat { struct swaylock_state *state; struct wl_pointer *pointer; struct wl_keyboard *keyboard; + int32_t repeat_period_ms; + int32_t repeat_delay_ms; + uint32_t repeat_sym; + uint32_t repeat_codepoint; + struct loop_timer *repeat_timer; }; extern const struct wl_seat_listener seat_listener; -- cgit v1.2.3