blob: 4775c57e52dfd75d38a22c2abbd6367d9eeb3b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#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;
bool control;
struct xkb_state *state;
struct xkb_context *context;
struct xkb_keymap *keymap;
};
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;
#endif
|