diff options
| author | Furkan Sahin <furkansahin824@proton.me> | 2024-09-23 16:07:01 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-10-19 13:01:28 -0400 |
| commit | cfaf9c568e2359d393ff4942384303553c9a2403 (patch) | |
| tree | 924c09bf41465a7f7be7e8fe1c758712cd3758cc /protocols/wlr-layer-shell-unstable-v1.xml | |
| parent | b7eb6177e1d634620d73d56224cf154e3b854e0f (diff) | |
input/keyboard: extend bindsym --to-code to work with duplicate matchesbindsym-tocode-dup-children
This modifies `get_active_binding` to treat bindsym --to-codes
separately: per each keysym `i` in `binding->keys`, look through the list of
matching keycodes in `binding->translations[i]`.
Another solution is to take the cartesian product of all syms and make a
binding per each product. This makes retranslation more difficult though
because the dups from the old layout have to be cleared out before
translating to the new `xkb_layout`. Whether by retaining a parent
binding, searching through all bindings for matching `binding->command`,
or some other ref count structure, that would introduce more complexity
than modifying get_active binding to account for dups. Notice this
requires no changes to the existing retranslation logic.
Diffstat (limited to 'protocols/wlr-layer-shell-unstable-v1.xml')
0 files changed, 0 insertions, 0 deletions
