CATCH mouse event!!!
Im first here. I got a problem in my works. The question is how to catch the mouse event in X Window environment.
1. It's a standalone console program, looping for mouse event.
2. Im using X Window(Without GNOME and KDE, pure X), The Front Application are Movie Player or Image Slider.
3. When user clicks mouse button(do not care X,Y position), that mouse event catcher program could know it. Just stop all movie player or Image Slider App. Run another App.
I need a clue or example on the question, any help would be appreciated!!