2019-01-13 20:15:32 -06:00
|
|
|
#ifndef _SWAYLOCK_SEAT_H
|
|
|
|
#define _SWAYLOCK_SEAT_H
|
|
|
|
#include <xkbcommon/xkbcommon.h>
|
2020-06-19 16:02:23 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct loop;
|
|
|
|
struct loop_timer;
|
2019-01-13 20:15:32 -06:00
|
|
|
|
|
|
|
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;
|
2020-06-19 16:02:23 -05:00
|
|
|
int32_t repeat_period_ms;
|
|
|
|
int32_t repeat_delay_ms;
|
|
|
|
uint32_t repeat_sym;
|
|
|
|
uint32_t repeat_codepoint;
|
|
|
|
struct loop_timer *repeat_timer;
|
2019-01-13 20:15:32 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct wl_seat_listener seat_listener;
|
|
|
|
|
|
|
|
#endif
|