Can you provide me example code (on any language) which use record extension via XCB? There are many examples of how to do it with Xlib (https://gist.github.com/whym/402801) but I can't understand how to translate this part of Xlib code to XCB:
# Create a recording context; we only want key and mouse events
ctx = record_dpy.record_create_context(
0,
[record.AllClients],
[{
'core_requests': (0, 0),
'core_replies': (0, 0),
'ext_requests': (0, 0, 0, 0),
'ext_replies': (0, 0, 0, 0),
'delivered_events': (0, 0),
'device_events': (X.KeyPress, X.KeyPress),
'errors': (0, 0),
'client_started': False,
'client_died': False,
}]
)
XCB docs for xcb_record_create_context(...) is totally mess. Any working code will be helpful.