2017-04-15 10:32:05 +00:00
|
|
|
/*
|
|
|
|
* rofi
|
|
|
|
*
|
|
|
|
* MIT/X11 License
|
|
|
|
* Copyright © 2013-2017 Qball Cow <qball@gmpclient.org>
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
* the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
|
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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
|