Is there a way of capturing all events being sent by the X Server, similar to what the Record extension does, but without actually using said extension? I maintain a program called AutoKey which uses the Record extension, but in the latest X Server Record is broken and it looks like it will be some time before it is fixed. I've tried the sample code in the documentation and also some I've found around Google, but nothing seems to yield any events. I'm particularly interested in XKeyPress and XButtonPress events.