I'm in the process of porting the XRandR protocol to python-xlib, and I'm running into some issues.
First, there's only one example of extension_add_event in the current code tree (Xlib/ext/shape.py) and it just uses info.first_event as the event ID; what should I use as the IDs for further events? first_event + 1?
Second, there are no examples of add_extension_error usage; what should I put in for the 'err' argument? It says that argument is an 'error class', but doesn't mention what sort of interface it should support.