diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-27 16:07:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-27 16:10:32 +0000 |
| commit | c9455d5f211616ce3750e58a472e1b5a4251b8be (patch) | |
| tree | a45ba347973aac6852098f3db09719bbd50d1d16 /kbd.c | |
| parent | kbd: break out XKB kbd struct to a separate file (diff) | |
kbd: move into wayland
Diffstat (limited to 'kbd.c')
| -rw-r--r-- | kbd.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -1,18 +0,0 @@ -#include "kbd.h" - -#include <xkbcommon/xkbcommon-compose.h> - -void -kbd_destroy(struct kbd *kbd) -{ - if (kbd->xkb_compose_state != NULL) - xkb_compose_state_unref(kbd->xkb_compose_state); - if (kbd->xkb_compose_table != NULL) - xkb_compose_table_unref(kbd->xkb_compose_table); - if (kbd->xkb_keymap != NULL) - xkb_keymap_unref(kbd->xkb_keymap); - if (kbd->xkb_state != NULL) - xkb_state_unref(kbd->xkb_state); - if (kbd->xkb != NULL) - xkb_context_unref(kbd->xkb); -} |
