[Xquartz-dev] Getting info on X11 Apps

Jeremy Huddleston jeremyhu at berkeley.edu
Fri Feb 15 22:10:46 PST 2008


This really belongs in -dev rather than -users, so I'm responding  
there...

Take a look at the attached code.  You can pull what you need out of  
it.  This was my little test app for testing the focus bug and spits  
out the windows in X11 z depth ordering.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xwinlist.c
Type: application/octet-stream
Size: 2204 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20080215/886d809f/attachment.obj 
-------------- next part --------------



On Feb 15, 2008, at 21:43, Tommy Nordgren wrote:

> Do the X11 API offer any function for getting info on currently  
> running X11 processes?
> Specifically, when a X11 window has user focus, I want to get the  
> name of the X11 process
> that owns the window. It would be nice with a solution that is  
> portable too.
> -----------------------------------
> See the amazing new SF reel: Invasion of the man eating cucumbers  
> from outer space.
> On congratulations for a fantastic parody, the producer replies :  
> "What parody?"
>
> Tommy Nordgren
> tommy.nordgren at comhem.se
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list      (X11-users at lists.apple.com)
> Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/jeremyhu%40freedesktop.org
>
> This email sent to jeremyhu at freedesktop.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20080215/886d809f/attachment.bin 


More information about the Xquartz-dev mailing list