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



On Sat, Jan 25, 2003 at 10:14:25AM +0000, Tor Lillqvist wrote: 
> I wonder what the loop in gdkwindow-win32.c:gdk_window_get_frame_extents() 
> that is commented as "find the frame window" is supposed to do. AFAIK,
> on Windows the window decorations aren't a separate window, so is this
> loop necessary?  Doesn't the preceding loop (identical to the one in
> the X11 backend) that traverses the GDK parent chain already find the
> top-level window?
> 
> And BTW, the docs for gdk_window_get_frame_extents() says "@window: a
> toplevel #GdkWindow". Isn't the loop that traverses the parent chain
> then unnecessary, if the window passed to this function is supposed to
> always be a top-level window?

This code should probably be different on Windows. Remember in X11,
the toplevel window from GDK's perspective is reparented into a frame
window by the window manager. So the loop is looking for the window
manager's frame window.

Havoc



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