44ceea7 ยท 1 month ago 7 commits
 1#ifndef _SWAYLOCK_SEAT_H
 2#define _SWAYLOCK_SEAT_H
 3#include <xkbcommon/xkbcommon.h>
 4#include <stdint.h>
 5#include <stdbool.h>
 6
 7struct loop;
 8struct loop_timer;
 9
10struct swaylock_xkb {
11	bool caps_lock;
12	bool control;
13	struct xkb_state *state;
14	struct xkb_context *context;
15	struct xkb_keymap *keymap;
16};
17
18struct swaylock_seat {
19	struct swaylock_state *state;
20	struct wl_pointer *pointer;
21	struct wl_keyboard *keyboard;
22	struct wl_touch *touch;
23	int32_t repeat_period_ms;
24	int32_t repeat_delay_ms;
25	uint32_t repeat_sym;
26	uint32_t repeat_codepoint;
27	struct loop_timer *repeat_timer;
28};
29
30extern const struct wl_seat_listener seat_listener;
31
32#endif