You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wismill opened this issue
Oct 1, 2024
· 0 comments
Labels
questionIndicates that an issue, pull request, or discussion needs more informationstateIndicates a need for improvements or additions to the xkb_state API
This is because we use indexes an not masks, contrary to modifiers. So here 0 may denotes either an unset value or the result of a sum or an actual index.
We should maybe disallow using XKB_STATE_LAYOUT_DEPRESSED and XKB_STATE_LAYOUT_LATCHED and return a negative value, e.g. -2.
The text was updated successfully, but these errors were encountered:
wismill
added
question
Indicates that an issue, pull request, or discussion needs more information
state
Indicates a need for improvements or additions to the xkb_state API
labels
Oct 1, 2024
questionIndicates that an issue, pull request, or discussion needs more informationstateIndicates a need for improvements or additions to the xkb_state API
If we have 2 layouts and e.g. the following state components:
then we have these counter-intuitive results:
This is because we use indexes an not masks, contrary to modifiers. So here 0 may denotes either an unset value or the result of a sum or an actual index.
We should maybe disallow using
XKB_STATE_LAYOUT_DEPRESSED
andXKB_STATE_LAYOUT_LATCHED
and return a negative value, e.g.-2
.The text was updated successfully, but these errors were encountered: