summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Dørum <martid0311@gmail.com>2020-06-19 22:02:23 +0100
committerGitHub <noreply@github.com>2020-06-19 23:02:23 +0200
commita99afe6a7075c962da72b140f02e18318052d833 (patch)
tree50681eb07cf9faaa89462cd0838a29a96413a665 /include
parenta6b3a0956b2fe53b291abe01433a4cea2c88e35a (diff)
Implement key repeat
Diffstat (limited to 'include')
-rw-r--r--include/seat.h10
1 files changed, 10 insertions, 0 deletions
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 <xkbcommon/xkbcommon.h>
+#include <stdint.h>
+#include <stdbool.h>
+
+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;