geometry of the gnome panel



HI


In an panel applet I'm writing, I use the signal 'send-position'
from which one can get the current position of the applet. 
It turns out that the position is given relative to the 
root window, so in order to know where the applet is relative
to the panel, I need to get the geometry of the panel into 
my program. 

Now, the window name of the gnome panel is 'panel', so I figured
I'd just read the output of xwininfo -name panel, but that
turns out not to display the correct information for
some reason.  It does work when I use the 'id'
of the panel like this: xwininfo -id 0x800043 . Unfortunately,
the id is not always the same...

Any suggestions anyone? 

best regards

jos






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]