XDisplayConnection.addRootInput

Requests the specified input from the root window on the connection, in addition to any other request.

More...
class XDisplayConnection
static
void
addRootInput
(
EventMask mask
)

Detailed Description

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!
Suggestion Box / Bug Report