Re: GTK+ 2.2.0: gtk_window_move(window, 0, 0)



On Fri, Jan 24, 2003 at 10:29:38PM +0000, Tor Lillqvist wrote:
> Ken Rastatter writes:
>  > For example, the following simple test program create a TOPLEVEL
>  > window and moves it to (0,0).  One should see the top, left corner
>  > of the GTK window's title bar moved to the top, left corner of the
>  > Windows desktop like this:
> 
>  > However, 2.2.0 moves the top, left corner of the GTK window's
>  > *client area* to the top,
> 
> (thus leaving the title bar outside the screen)
> 
> How does GTK+ do this on X11? Do top-level window coordinates and
> sizes take the window decorations into account or not? I have reasoned
> one should not take them into account, and that all coordinates and
> sizes should refer to the so-called client area.
> 
> Or should some mixture be used, for instance so that a top-level
> window size specifies the client area size, but its coordinates are
> the decoration's (title bar's) coordinates?
> 

It's quite complicated on X11; if you read the API docs to
gtk_window_move(), gtk_window_set_geometry_hints(),
gtk_window_get_position() etc. they have a lot of details.

Havoc




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