Skip to content

Conversation

@wismill
Copy link
Member

@wismill wismill commented May 16, 2025

Previously if a new sequence did not produce a keysym or a string, the corresponding property was not overriden, possibly leaking the previous entry.

  • Fixed by always writting all the properties.
  • Also try to reuse the previous string entry, if possible, so that we avoid allocating.

Discovered while reviewing #570. Probably not an issue in practice if following the standard system Compose file syntax: string + keysym.

@wismill wismill added this to the 1.10.0 milestone May 16, 2025
@wismill wismill added bug Indicates an unexpected problem or unintended behavior compose Indicates a need for improvements or additions to Compose handling labels May 16, 2025
Previously if a new sequence did not produce a keysym or a string, the
corresponding property was not overriden, possibly leaking the previous
entry.

- Fixed by always writting all the properties.
- Also try to reuse the previous string entry, if possible, so that we
  avoid allocating.
@wismill wismill force-pushed the compose/overriding-fix branch from 45fa61d to ca8566e Compare May 16, 2025 11:38
@wismill wismill merged commit 3a8bb1a into xkbcommon:master May 16, 2025
5 checks passed
@wismill wismill deleted the compose/overriding-fix branch May 16, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Indicates an unexpected problem or unintended behavior compose Indicates a need for improvements or additions to Compose handling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant