diff options
author | 33KK <marko@pepega.club> | 2023-06-11 11:36:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 11:36:30 +0200 |
commit | be14cd96cd81270b3a34742f9a25fe21adf4f595 (patch) | |
tree | 74f7af6921480d002aad58ca486be83c9c9f5e48 /sway/input/input-manager.c | |
parent | man: add --inhibited and --no-repeat to bindsym and bindcode usage (diff) | |
download | sway-be14cd96cd81270b3a34742f9a25fe21adf4f595.tar.gz sway-be14cd96cd81270b3a34742f9a25fe21adf4f595.tar.zst sway-be14cd96cd81270b3a34742f9a25fe21adf4f595.zip |
Fix `bindsym --to-code` not respecting input configs
Fixes #7535
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r-- | sway/input/input-manager.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index 1115ba5e..5f7dfb42 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -532,6 +532,18 @@ static void retranslate_keysyms(struct input_config *input_config) { | |||
532 | return; | 532 | return; |
533 | } | 533 | } |
534 | } | 534 | } |
535 | |||
536 | for (int i = 0; i < config->input_type_configs->length; ++i) { | ||
537 | struct input_config *ic = config->input_type_configs->items[i]; | ||
538 | if (ic->xkb_layout || ic->xkb_file) { | ||
539 | // this is the first config with xkb_layout or xkb_file | ||
540 | if (ic->identifier == input_config->identifier) { | ||
541 | translate_keysyms(ic); | ||
542 | } | ||
543 | |||
544 | return; | ||
545 | } | ||
546 | } | ||
535 | } | 547 | } |
536 | 548 | ||
537 | static void input_manager_configure_input( | 549 | static void input_manager_configure_input( |