I wrote a program that connects to the X server and grabs a number of keys using XGrabKey(). In an infinite while loop events are retrieved by XNextEvent(). The client has no window. So the client should only receive those key events that where specified in the XGrabKey() calls. The client however also receives key events sent by XTestFakeKey() that are not grabbed. The XTestFakeKey() function is called within the same program, but a different connection to the X server is used for this function.
*** This bug has been marked as a duplicate of 5592 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.