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

List:       freedesktop-xorg
Subject:    Re: [SOLVED] Re: Simple application to get window WId ?
From:       Carsten Haitzler (The Rasterman) <raster () rasterman ! com>
Date:       2010-08-23 10:04:17
Message-ID: 20100823190417.3b58a0e1.raster () rasterman ! com
[Download RAW message or body]

On Mon, 23 Aug 2010 15:39:30 +0800 Aaron Lewis <aaron.lewis1989@gmail.com> said:

> Hi eirik,
> 
> On 08/23/2010 01:42 PM, Eirik Byrkjeflot Anonsen wrote:
> > 
> > If you want to code it yourself, both xwininfo and xprop do this, so you
> > could look at how they do it.
> > 
> > (It is probably a little harder than you might think, as you probably
> > want the XID of the "application" window, and not any random subwindow
> > or the root window or a window created by the window manager...)
> > 
> > eirik
> 
> In my application , i use WId , so it's cool enough for me right now.
> 
> xwininfo solved my problem , now i could tell what's wrong with my
> application.
> 
> Thanks a lot !

if you are this new to x that you didn't know of xwininfo... i highly also
suggest you stare at:

xwininfo -tree -root

for a while :) also xprop and xev are your friends. :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster@rasterman.com

_______________________________________________
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