aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-07 18:41:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-09 16:51:04 +0000
commitdcd79065c87c69496ad4e2fa916053d8843a6c71 (patch)
tree0076a9349942e5a397d53d659962f463135ee049 /search.c
parentconfig: move structs and enums used by config from terminal.h -> config.h (diff)
wayland: unify key- and mouse-binding structs
Diffstat (limited to 'search.c')
-rw-r--r--search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/search.c b/search.c
index 8015f265..3d3d6265 100644
--- a/search.c
+++ b/search.c
@@ -838,7 +838,7 @@ search_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)) {
if (execute_binding(seat, term, bind->action, serial,
@@ -854,7 +854,7 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key,
/* Match untranslated symbols */
for (size_t i = 0; i < raw_count; i++) {
- if (bind->sym == raw_syms[i]) {
+ if (bind->k.sym == raw_syms[i]) {
if (execute_binding(seat, term, bind->action, serial,
&update_search_result, &redraw))
{
@@ -865,7 +865,7 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key,
}
/* Match raw key code */
- tll_foreach(bind->key_codes, code) {
+ tll_foreach(bind->k.key_codes, code) {
if (code->item == key) {
if (execute_binding(seat, term, bind->action, serial,
&update_search_result, &redraw))