Hi,
Thanks a lot for your immediate reply. 
It would be very helpful if you could point me to a  mechanism,
whereby I could achieve the same without an LD_PRELOAD?

Thanks again
Kala.


 


On Sat, 12 Feb 2005 20:20:59 +0900, The Rasterman Carsten Haitzler
<[EMAIL PROTECTED]> wrote:
> On Sat, 12 Feb 2005 16:17:33 +0530 Kala B <[EMAIL PROTECTED]> babbled:
> 
> > Hi,
> >
> > I am trying to develop an application, which needs to know the owner (
> > process id )  of every window that is being created on the system. As,
> > setting of _NET_WM_PID is not mandated for applications, is there some
> > other way through which I could get to know the pid of a window?
> >
> > I am only interested in the scenario, when both the xserver and
> > xclient are on the same machine, so the XServer uses a Unix domain
> > socket. So, in this case, the XServer would anyway get to know the pid
> > of the connecting client by using the SO_PEERCRED option. Can the
> > xserver propagate the pid of the client ? (Probably by adding another
> > specific property to every window being created?). Would there be any
> > issues with this approach.
> >
> > These are my very very initial thoughts and am also new to X, so
> > request you all to give me your suggestions.
> 
> see attached source and Makefile.am - use it as an LD_PRELOAD (i did this a 
> long
> time ago) and then u guarantee properties on everything you run with the
> LD_PRELOAD active.
> 
> > Thanks a lot
> > Kala
> > _______________________________________________
> > Devel mailing list
> > [email protected]
> > http://XFree86.Org/mailman/listinfo/devel
> >
> 
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
> èåå                              [EMAIL PROTECTED]
> Tokyo, Japan (æä ææ)
> 
> 
>

_______________________________________________
Devel mailing list
[email protected]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to