aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 8a8a5451..2bb35ef5 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1262,6 +1262,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
memcpy(term->colors.table, term->conf->colors.table, sizeof(term->colors.table));
+ key_binding_new_for_term(wayl->key_binding_manager, term);
+
/* Initialize the Wayland window backend */
if ((term->window = wayl_win_init(term, token)) == NULL)
goto err;
@@ -1577,6 +1579,8 @@ term_destroy(struct terminal *term)
if (term == NULL)
return 0;
+ key_binding_unref_term(term->wl->key_binding_manager, term);
+
tll_foreach(term->wl->terms, it) {
if (it->item == term) {
tll_remove(term->wl->terms, it);