Method

GdkWindowget_toplevel

Declaration [src]

GdkWindow*
gdk_window_get_toplevel (
  GdkWindow* window
)

Description [src]

Gets the toplevel window that’s an ancestor of window.

Any window type but GDK_WINDOW_CHILD is considered a toplevel window, as is a GDK_WINDOW_CHILD window that has a root window as parent.

Note that you should use gdk_window_get_effective_toplevel() when you want to get to a window’s toplevel as seen on screen, because gdk_window_get_toplevel() will most likely not do what you expect if there are offscreen windows in the hierarchy.

Return value

Type: GdkWindow

The toplevel window containing window.

The returned data is owned by the instance.