x11-rs icon indicating copy to clipboard operation
x11-rs copied to clipboard

missing XIMaskLen macro translation

Open mororo18 opened this issue 6 months ago • 0 comments

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
}

mororo18 avatar Aug 17 '24 04:08 mororo18