finding process id of a window

Joel Dice dicej at mailsnare.net
Tue Mar 29 08:33:58 PST 2005


On Tue, 29 Mar 2005, Norberto Bensa wrote:

> Joel Dice wrote:
>> On Mon, 28 Mar 2005 Yossi.Itzkovich at ecitele.com wrote:
>>> I have few  X applications, started from the command line with identical
>>> command line, but each has a different DISPLAY environment variable.
>>> Is there a way to get the process id of a process from its window ?
>>
>> I asked about this a few months ago, and apparently it's not possible.
>> What do you need the process id for?  Perhaps what you're trying to do can
>> be accomplished some other way.
>
> Maybe I'm a bit off-topic here, but perhaps you should take a look at xkill
> code.

Good idea.  Unfortunately, xkill just calls XKillClient(Display,XID), 
which does not give you access to the PID.

  - Joel



More information about the xorg mailing list