diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/interactive.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/interactive.c b/test/interactive.c index 90b1df2..94b14a7 100644 --- a/test/interactive.c +++ b/test/interactive.c @@ -255,8 +255,9 @@ print_keycode(struct keyboard *kbd, xkb_keycode_t keycode) printf("] "); #endif - printf("groups [ "); - for (group = 0; group < xkb_keymap_num_layouts(keymap); group++) { + printf("group [ "); + for (group = 0; group < xkb_keymap_num_layouts_for_key(keymap, keycode); + group++) { if (xkb_state_layout_index_is_active(state, group, XKB_STATE_LAYOUT_EFFECTIVE) <= 0) continue; |