[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Simple application to get window WId ?
From:       "Mag. Dr. Nikolaus Klepp" <dr.klepp () gmx ! at>
Date:       2010-08-23 8:10:40
Message-ID: 201008231010.40485.dr.klepp () gmx ! at
[Download RAW message or body]

Am Montag, 23. August 2010 schrieb Aaron Lewis:
> Hi,
> 	I'm currently working on a KDE application , plasma-globalmenu , which
> will make all GTK / Gnome application globally on XBar , but now i'm
> meeting a problem , so i need to write a simply application , which
> could help me detect the WId of a running window.
>
> Like , popup a mouse , let me click on something , and print a unique
> number (WId) , in decimal or hex , doesn't matter.
>
> Could anyone give a hand on this simple application ?
>
> I think it's very basic , but i've never done pure X11 programming
> before , any guides is appreciated.
>
> Many thanks !

xwininfo does the job. you might want to take a look at the sources :-)
-- 

Mag. Dr. Nikolaus Klepp
Einnehmerstraße 14
A-4810 Gmunden
Tel.: +43 650 82 11 724
email: office@klepp.biz
       dr.klepp@gmx.at 
       
_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic