Hello, we use XTestFakeKeyEvent , XTestFakeMotionEvent, XTestFakeButtonEvent to send VNC-client events to our x-server. And in our GUI we use XCheckWindowEvent to read real keyboard, mouse & XTestFake... events. Is there a way to different the source of the events ? VNC-Button, Mouse-Button, real-keyboard key, VNC-fakeKey, ... Regards Johann