x11-rs
x11-rs copied to clipboard
missing XIMaskLen macro translation
src/xinput2.rs
doesn't have the translation for the XIMaskLen macro.
#define XIMaskLen(event) (((event) >> 3) + 1)
That should be implemented as:
pub fn XIMaskLen(event: i32) -> usize {
mask_byte(event) + 1
}