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
In src/keymap.h, the type of the screen member in the xkb_switch_screen_action struct is int8_t. This also matches the type specified in the X Keyboard Extension Protocol Specification for SA_SwitchScreen. However, during the validation step in src/xkbcomp/action.c, in the function HandleSwitchScreen(), all values in the range [-255, +255] are accepted.
Should the validation step instead check that the value is in [-128, +127], in order to fit inside the range of int8_t?
The text was updated successfully, but these errors were encountered:
In
src/keymap.h
, the type of thescreen
member in thexkb_switch_screen_action
struct isint8_t
. This also matches the type specified in the X Keyboard Extension Protocol Specification for SA_SwitchScreen. However, during the validation step insrc/xkbcomp/action.c
, in the functionHandleSwitchScreen()
, all values in the range [-255, +255] are accepted.Should the validation step instead check that the value is in [-128, +127], in order to fit inside the range of
int8_t
?The text was updated successfully, but these errors were encountered: