mirror of
https://github.com/swaywm/sway.git
synced 2025-02-05 09:45:09 +01:00
4d0d553338
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. |
||
---|---|---|
.. | ||
desktop | ||
input | ||
tree | ||
commands.h | ||
config.h | ||
criteria.h | ||
decoration.h | ||
ipc-json.h | ||
ipc-server.h | ||
layers.h | ||
lock.h | ||
output.h | ||
scene_descriptor.h | ||
server.h | ||
sway_text_node.h | ||
swaynag.h | ||
xdg_decoration.h | ||
xwayland.h |