finding process id of a window

[email protected] Mon, 28 Mar 2005 06:12:53 +0200
Newsgroups gmane.comp.freedesktop.xserver
Message-ID <OF9D4F4E1C.ED43354F-ONC2256FD2.0016DEB8-C2256FD2.00172A49@ecitele.com>



Hi,

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 ?

Using xlsclients I can get the command line of the application, but since
all of them use same command line, I can't find unique process id.

Thanks for your help.

Yossi