aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-09 08:00:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-09 08:00:54 +0000
commitb4fdf51752bc27b68d2bc25d3d1adff3eb40e639 (patch)
tree79746cd294033f120d5e08bb9f6a8cbbdd5f9b00 /main.c
parentvt: handle UTF-8 sequences in OSC PUT (diff)
input: add support for dead keys (composing)
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8efade1a..4dd6afbc 100644
--- a/main.c
+++ b/main.c
@@ -13,6 +13,7 @@
#include <wayland-client.h>
#include <wayland-cursor.h>
#include <xdg-shell.h>
+#include <xkbcommon/xkbcommon-compose.h>
#define LOG_MODULE "main"
#define LOG_ENABLE_DBG 0
@@ -612,6 +613,10 @@ out:
wl_registry_destroy(term.wl.registry);
if (term.wl.display != NULL)
wl_display_disconnect(term.wl.display);
+ if (term.kbd.xkb_compose_state != NULL)
+ xkb_compose_state_unref(term.kbd.xkb_compose_state);
+ if (term.kbd.xkb_compose_table != NULL)
+ xkb_compose_table_unref(term.kbd.xkb_compose_table);
if (term.kbd.xkb_keymap != NULL)
xkb_keymap_unref(term.kbd.xkb_keymap);
if (term.kbd.xkb_state != NULL)