summaryrefslogtreecommitdiff
path: root/src/tofi.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-08-03 00:15:49 +0100
committerPhil Jones <philj56@gmail.com>2022-08-03 00:34:42 +0100
commit02497d8e31876e6269f8686c44ec4f23a09cf5eb (patch)
tree6e5ccbe90f468657152b15682c636b33e511d372 /src/tofi.h
parent85b85d735594ce9c1fe5db57fc5bd8cd1cddf45e (diff)
Add key repeat.
Diffstat (limited to 'src/tofi.h')
-rw-r--r--src/tofi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tofi.h b/src/tofi.h
index 0b63363..bb677a0 100644
--- a/src/tofi.h
+++ b/src/tofi.h
@@ -3,6 +3,7 @@
#include <stdbool.h>
#include <stdint.h>
+#include <xkbcommon/xkbcommon.h>
#include "color.h"
#include "entry.h"
#include "image.h"
@@ -60,6 +61,13 @@ struct tofi {
int32_t margin_left;
int32_t margin_right;
} window;
+ struct {
+ uint32_t rate;
+ uint32_t delay;
+ uint32_t keycode;
+ uint32_t next;
+ bool active;
+ } repeat;
/* Options */
uint32_t anchor;