dear friends.
regarding to xlib programming i have a question, please do me a favor and answer me.i would be grateful...
question:
in my recent project i want to capture the mouse event as well as keyboard event for different application running on the system.
i could create a single window and get my favorite information,but this is not my destiny,i need the corresponding info for each application running.
i mean for example text editor is running,if i am working with it, i need the corresponding key that was pressed,and for the other app also the same..
how can i get that??
- how can i take info of app running from window manager,any functions?
-or how can i get the child windows(apps) info of root display??

i appreciate you...thanks