Since plain XSelectInput will replace the existing mask, adding input from multiple locations is tricky. This central function will combine all the masks for you.
it calls XSelectInput itself, which will override any other root window input you have!
Requests the specified input from the root window on the connection, in addition to any other request.