Re: [gtk-list] How to get X,Y position



]ke Gustavsson IB wrote:
> 
> Hallo
> 
> How can one get the X,Y position for the upper left
> corner of a window?
> 
> I have tried to read the allocation struct but nothing
> seams to be stored there.

You can use gdk_window_get_origin.
But beware, a GtkWindow may get reparented by the window
manager to provide decorations, and may have a slightly different 
x/y position than you would expect.



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