Thread: Window -> PID
View Single Post

   
  #5 (permalink)  
Old 01-09-2008, 06:54 AM
Logan Shaw
 
Posts: n/a
Default Re: Window -> PID

Bernd Haug wrote:
> <bunka.munka@yahoo.com> <bunka.munka@yahoo.com> wrote:


>>Sometimes, I have an application running in Window and want to
>>know the PID. Is there a way I can get it somehow digging into
>>structures, if I know the Window ID (obtained by xwininfo) ?


> How does xkill do that kind of stuff?


I always assumed it tells the X server to kill the window.
The X server then kills the window and breaks the client's
connection. The client then exits when it senses it has
lost the connection to the X server.

I may not have the details right, but the point is that as
I understand it, the client chooses to exit because it realizes
its connection to the X server has been lost.

- Logan
Reply With Quote