From 061bbd704961b17419fd69344af6268487abb926 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 27 Oct 2019 16:21:19 +0100 Subject: kbd: break out XKB kbd struct to a separate file --- main.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 0bdfe69a..7c8de292 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include @@ -1151,17 +1150,7 @@ out: shm_fini(); - 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) - xkb_state_unref(term.kbd.xkb_state); - if (term.kbd.xkb != NULL) - xkb_context_unref(term.kbd.xkb); - + kbd_destroy(&term.kbd); wayl_win_destroy(&term.window); wayl_destroy(&term.wl); -- cgit v1.3