Hi,

I want to make a C program which capture all mouse events, not only
those from a given window, is it possible ?
If yes, how ?

I tried a XSelectInput(dpy, DefaultRootWindow(dpy), myMASK) but It
didn't work.

Thanks in advance,