Re: identifying owning process

Dr Andrew C Aitchison <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
On Mon, 4 Jun 2007, Ian Archer wrote:

> Is there any way to identify the application which "owns" an x-window?
> I'd like to be able to figure out, for example, that gimp owns window
> 'X'.

There are xlsclient and xwininfo.

Remember that the user may be running two copies of gimp, that ssh 
tunnelling could be in use and that a remote machine can put windows on 
an X display, so the question isn't as simple as it may appear.

The is an X security protocol (which isn't widely used) which hides
some of this information from applications which don't need to know,
and remote machines may have a completely different idea of a "process"
so in general getting the process id for a window isn't always possible.

-- 
Dr. Andrew C. Aitchison		Computer Officer, DPMMS, Cambridge
[email protected]	http://www.dpmms.cam.ac.uk/~werdna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.