don't know how to use the LD_PRELOAD hack to get the id of a process creating a window

2004-03-25 Thread dave giffin
I appreciate all the feedback from people so quickly on my previous message. I read Carsten Haitzler's message about creating a library and getting x apps to load it via the LD_PRELOAD environment variable. This sounds like the best option for me. But, I'm not sure how to actually do it. I

how to convert a window ID to a linux process ID?

2004-03-24 Thread dave giffin
I need to be able to tell which process a given window was created by. (Window ID=Process ID) Apparently, X servers don't know which process a client is, they just get a socket (b/c of X's network transparency). It has been suggested that I could run a program like netstat on the client