Is it possible (or how) to create a mechanism (in Linux X11, C++) that works like a global hook in windows (SetWindowsHookEx())?
I would like to be able to catch the key
Use XTestFakeKeyEvent() from the XTest extension library to propagate fake key press / release events.