AltF02 / x11-rs

Rust bindings for X11 libraries
https://docs.rs/x11
MIT License
207 stars 66 forks source link

bool -> Bool #98

Closed rukai closed 5 years ago

rukai commented 5 years ago

This could have been causing UB when using mem::uninitialized() on an XEvent. I'm not sure how unions handle such things...

Regardless this value was clearly meant to be a Bool. https://www.x.org/releases/current/doc/man/man3/XF86VM.3.xhtml

ghost commented 5 years ago

Thanks! With all the structs written by hand, it's no wonder that something slipped through the cracks.