Edit

kc3-lang/libxkbcommon/changes/api/640.breaking.md

Branch :

  • Browse

    Commit

  • Author : Pierre Le Marre
    Date : 2025-09-24 20:28:00
    Hash : 345f0c67
    Message : keymap: Make pretty-printing optional This greatly improves the keymap serialization: 1.22× speedup and about 5% less allocations. The resulting keymap is also a bit faster to parse. Another improvement is that it eases keysym names migrations (removal and additions) by using only keysym numeric values. This requires some care, i.e. `NoSymbol` must be serialized with its name and not its value 0x0, because xkbcomp and libxkbcommon < 1.12 would interpret the numeric value as `XKB_KEY_0`.

  • changes/api/640.breaking.md
  • `xkb_keymap::xkb_keymap_get_as_string()` does not pretty-print the keymap anymore.
    Use `xkb_keymap::xkb_keymap_get_as_string2()` with `::XKB_KEYMAP_SERIALIZE_PRETTY`
    to get the previous behavior.