swayfx/include/swaylock/seat.h
Dominique Martinet c78ce0770a swaylock: implement ^U to clear buffer
The whole state->xcb.modifiers thing didn't work at all (always 0)
The xkb doc says "[xkb_state_serialize_mods] should not be used in
regular clients; please use the xkb_state_mod_*_is_active API instead"
so here it is
2018-06-08 22:42:15 +09:00

16 lines
286 B
C

#ifndef _SWAYLOCK_SEAT_H
#define _SWAYLOCK_SEAT_H
#include <xkbcommon/xkbcommon.h>
struct swaylock_xkb {
bool caps_lock;
bool control;
struct xkb_state *state;
struct xkb_context *context;
struct xkb_keymap *keymap;
};
extern const struct wl_seat_listener seat_listener;
#endif