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