Re: Quick question about spec



On Mon, 21 Feb 2000, you wrote:
> On Mon, 21 Feb 2000, Bradley Tyson Hughes wrote:
> 
> > On Mon, 21 Feb 2000, Tim Janik wrote:
> > 
> > [snip]
> > 
> > > yes, basically. it is also important for toolkits to figure the position of their
> > > wm frame window, so they can store/restore window positions, since an unmapped window
> > > moved to x,y will be mapped at x+frame_width,y+frame_height.
> > 
> > it should be easy... XTranslateCoordinates can do this... 
> 
> i'm sorry, i don't follow. the coordinates required here are not the window's
> x,y but the frame's x,y. gtk contains gdk_window_get_deskrelative_origin() for exactly
> this purpose. and figuring the frame requires the (virtual) root window to be identified.

heh... sorry... i probably should have worded this differently...

you can use XTranslateCoordinates to find the frame coordinates (by traversing
up the window tree to the root window)

in cases where there is a virtual root window (more specifically... one that
doesn't reside at 0,0) then this method can't be used... and some other way
would have to be devised

> ---
> ciaoTJ
-- 
--- signature   Wed Dec 29 17:52:53 1999
+++ .signature  Wed Dec 29 17:53:19 1999
@@ -0,0 +1,3 @@
+Bradley T Hughes <bhughes@tcac.net>
+-----------------------------------
+     http://blackbox.alug.org/



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