Sample code for Xorg / X11 write extension fails

I am compiling a basic example (just as using bare X can be simple ...) using the X11 RECORD extension on the latest version of Ubuntu, and I get the following error:

 RECORD extension for local server is version is 1.13 X Error of failed request: XRecordBadContext Major opcode of failed request: 135 (RECORD) Minor opcode of failed request: 5 (XRecordEnableContext) Context in failed request: 0x17 Serial number of failed request: 10 Current serial number in output stream: 10 

Any clues about what's wrong?

+1
source share
1 answer

I believe that the XRECORD extension is broken on current servers (see https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/315456 , although I ran into problems with cnee long before the date it is assumed that a fix will be available). You might want to install the old Linux distribution on a virtual machine and try a sample code.

+1
source

Source: https://habr.com/ru/post/888288/


All Articles