From dcd79065c87c69496ad4e2fa916053d8843a6c71 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 7 Feb 2022 19:41:33 +0100 Subject: wayland: unify key- and mouse-binding structs --- url-mode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'url-mode.c') diff --git a/url-mode.c b/url-mode.c index 82002fa0..22cb3359 100644 --- a/url-mode.c +++ b/url-mode.c @@ -125,7 +125,7 @@ urls_input(struct seat *seat, struct terminal *term, uint32_t key, const struct key_binding *bind = &it->item; /* Match translated symbol */ - if (bind->sym == sym && + if (bind->k.sym == sym && bind->mods == (mods & ~consumed)) { execute_binding(seat, term, bind->action, serial); @@ -136,14 +136,14 @@ urls_input(struct seat *seat, struct terminal *term, uint32_t key, continue; for (size_t i = 0; i < raw_count; i++) { - if (bind->sym == raw_syms[i]) { + if (bind->k.sym == raw_syms[i]) { execute_binding(seat, term, bind->action, serial); return; } } /* Match raw key code */ - tll_foreach(bind->key_codes, code) { + tll_foreach(bind->k.key_codes, code) { if (code->item == key) { execute_binding(seat, term, bind->action, serial); return; -- cgit v1.3