Does the thread need to have a window mapped in order to catch such events? In my design i would like to handle input events separately from my graphics thread. I am still using only Xlib because i am using OpenGL for graphics. Would it work to just make a new thread and use XCB in that and catch such events.