ZaneA / WacomWebPlugin

An implementation of the Wacom Tablet Plugin API for NPAPI capable browsers on Linux.
GNU General Public License v3.0
52 stars 4 forks source link

Use XCB instead of Xlib #7

Open ZaneA opened 11 years ago

ZaneA commented 11 years ago

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.

ZaneA commented 11 years ago

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.