WacomWebPlugin
WacomWebPlugin copied to clipboard
Use XCB instead of Xlib
Not required in any way, but it'd be nice to rewrite the code using the XCB library instead of Xlib for future proof-ness (well as much as X11 will allow). When Wayland becomes popular I will need to look into solutions for that too.
XCB works quite differently, but once you learn the semantics of it it really is quite nice. The problem however is that the XInput support for XCB is still quite immature it seems. Where I'm stuck currently is getting the device name from xcb_input_device_info_t which in theory is in the padding (as far as I can tell), but is not actually exposed in the API yet. Will come back to this at a later date.