On Wed, 2003-06-25 at 06:02, Martin Ehmsen wrote:
> Hi...
> 
> I have a question (I can't seem to find the answer anywhere, so here 
> goes):
> Given a Window (ex. Window w, from an event or somewhere else) is it 
> possible to determine the program that owns that window?
> To be exact, I want the pid of the process owing the window.

If the app suports the recent window manager spec, you can
look for the _NET_WM_PID property. Make sure to check
WM_CLIENT_MACHINE as well.

Regards,
                                Owen


_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to