parent
171e0170c2
commit
4b58ff7859
|
@ -244,8 +244,10 @@ print_keymap(struct xkb_context *ctx, const struct xkb_rule_names *rmlvo)
|
||||||
if (keymap == NULL)
|
if (keymap == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
printf("%s\n", xkb_keymap_get_as_string(keymap,
|
char *buf = xkb_keymap_get_as_string(keymap, XKB_KEYMAP_FORMAT_TEXT_V1);
|
||||||
XKB_KEYMAP_FORMAT_TEXT_V1));
|
printf("%s\n", buf);
|
||||||
|
free(buf);
|
||||||
|
|
||||||
xkb_keymap_unref(keymap);
|
xkb_keymap_unref(keymap);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue