aboutsummaryrefslogtreecommitdiff
path: root/kbd.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-27 16:07:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-27 16:10:32 +0000
commitc9455d5f211616ce3750e58a472e1b5a4251b8be (patch)
treea45ba347973aac6852098f3db09719bbd50d1d16 /kbd.c
parentkbd: break out XKB kbd struct to a separate file (diff)
kbd: move into wayland
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/kbd.c b/kbd.c
deleted file mode 100644
index c38e77ba..00000000
--- a/kbd.c
+++ /dev/null
@@ -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);
-}