I could use something like that if it's written cross-platform.

For now, in Solaris, I'm doing my best to use Xnest to separate windows
into  categories, because some of our engineers use cad tools that spawn
a lot of windows, and it's very difficult to know which window belongs
to which instance of the cad tool.

BTW, it sounds like you're assuming a window is created by a process on
the local system.  Not a tremendously safe assumption, but partially
safe in a controlled environment.


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of dave giffin
> Sent: Thursday, March 18, 2004 12:48 AM
> To: [EMAIL PROTECTED]
> Subject: [XFree86] how to tell which linux process a window 
> belongs to? (window ID => process ID)
> 
> 
> I'm writing a window manager to experiment with
> different ways of organizing programs that users use. 
> 
> One of the things I'm trying requires that I know
> which windows belong to which linux process. 
> 
> My window manager is called when a new window is
> created.
> But, I don't have any way of telling which process
> they belong to. All I have is the window ID.
> 
> I need a way to translate a window ID to a linux
> Process ID. This solution doesn't have to be cross
> platform, I just need it to work on linux.
> 
> I'm using PLWM (a python library to implement window
> managers in python).
> 
> :)
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam 
http://mail.yahoo.com _______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to