2016-02-21 12:10:32 +00:00
|
|
|
#ifndef ROFI_XKB_INTERNAL_H
|
|
|
|
#define ROFI_XKB_INTERNAL_H
|
|
|
|
|
|
|
|
#include <xkbcommon/xkbcommon.h>
|
2016-02-21 14:31:13 +00:00
|
|
|
#include <xkbcommon/xkbcommon-compose.h>
|
2016-02-21 12:10:32 +00:00
|
|
|
|
2016-02-22 15:53:30 +00:00
|
|
|
struct xkb_stuff
|
|
|
|
{
|
2016-10-14 16:56:09 +00:00
|
|
|
/** connection to the X server*/
|
2016-02-21 12:10:32 +00:00
|
|
|
xcb_connection_t *xcb_connection;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Keyboard context */
|
2016-02-21 12:10:32 +00:00
|
|
|
struct xkb_context *context;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Flag indicating first event */
|
2016-02-21 12:10:32 +00:00
|
|
|
uint8_t first_event;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Keyboard device id */
|
2016-02-21 12:10:32 +00:00
|
|
|
int32_t device_id;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Current keymap */
|
2016-02-21 12:10:32 +00:00
|
|
|
struct xkb_keymap *keymap;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Keyboard state */
|
2016-02-21 12:10:32 +00:00
|
|
|
struct xkb_state *state;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Compose information */
|
2016-02-22 15:53:30 +00:00
|
|
|
struct
|
|
|
|
{
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Compose table */
|
2016-02-21 14:31:13 +00:00
|
|
|
struct xkb_compose_table *table;
|
2016-10-14 16:56:09 +00:00
|
|
|
/** Compose state */
|
2016-02-21 14:31:13 +00:00
|
|
|
struct xkb_compose_state * state;
|
|
|
|
} compose;
|
2016-02-21 12:10:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|