Skip to content

Conversation

Kontrabant
Copy link
Contributor

…d xkbcommon versions

This function is only available since version 1.0.0, but the SDL minimum is 0.5.0, and Steam Runtime 2 'soldier' uses 0.8.2, so add a fallback function with similar functionality for older versions.

xkb_keymap_key_get_mods_for_level() is more efficient, so it is still favored when available.

Fixes #14101

…d xkbcommon versions

This function is only available since version 1.0.0, but the SDL minimum is 0.5.0, and Steam Runtime 2 'soldier' uses 0.8.2, so add a fallback function with similar functionality for older versions.

xkb_keymap_key_get_mods_for_level() is more efficient, so it is still favored when available.
@Kontrabant Kontrabant merged commit 9182b8a into libsdl-org:main Oct 1, 2025
41 of 42 checks passed
@smcv
Copy link
Contributor

smcv commented Oct 2, 2025

This doesn't compile for me: the fallback implementation tries to return mask_idx, but mask_idx is only declared inside a narrower scope. Was it successfully tested?

smcv added a commit to smcv/SDL that referenced this pull request Oct 2, 2025
This is one of the older environments that we aim to support, so
building on here will avoid newer-than-intended dependencies like libsdl-org#14106.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.3.x] Wayland driver requires newer libxkbcommon than is available in Steam Runtime 2 'soldier'

2 participants