On Tue, 2003-09-16 at 13:50, Tim Roberts wrote:
> On Tue, 16 Sep 2003 03:56:36 -0500, theoharis tsenis wrote:
> >
> >   i am new in Xwin programming. I made an enumwindow function. For 
> > each visible window i get a Window structure. My main consern is to get 
> > the process id of the window and i am puzzled the way i should terminate 
> > that process if necessery.
> 
> To elaborate on Mark's response, the REASON you cannot get a process ID for a 
> given window is that, in the X world, that window might have been generated by 
> a program on an entirely different computer, running an entirely different 
> operating system, across the network.

That being said, the ICCCM defines the WM_CLIENT_MACHINE property:

WM_CLIENT_MACHINE(STRING) = "poincare.devel.redhat.com"

and the freedesktop.org WM spec defines the _NET_WM_PID property:

_NET_WM_PID(CARDINAL) = 23397

So, if the toolkit that creates the window supports these
specifications, you can find out the client machine and process ID.

Regards,
                                                Owen


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

Reply via email to