Re: finding out spatial window geometry

On Sat, 2004-09-18 at 12:45 +0200, Daniel Godas wrote:
> hi,
> i was trying to create a flying window animation (i sent another post
> about that) for nautilus spatial windows. First of all i need to get
> spatial window geometry so i can make my window fly from the launcher
> icon to that window and cover it completely when the animation ends. I
> can get its position and size from the metadata or from its gtkwindow
> but thats without the window managers decoration. this is, the
> position i get is the top left corner of the wm frame but id like to
> get the real top left corner and the size  i get is the size of the
> window without the frame wm adds.
> i tried to use GTK_WIDGET (GTK_WINDOW (nautilus_window)) -> window  to
> get its gdkwindow and get the frame from it but it returns a null
> pointer. It would be enough to know the size of the borders the window
> manager adds but i dont know how to find out that.

I don't think there is a way to do this in X. If so, it probably
involves some wmspec extension.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a witless chivalrous househusband on the run. She's a wealthy motormouth 
hooker with her own daytime radio talk show. They fight crime! 

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