Window.getEffectiveToplevel
gdk.window.Window getEffectiveToplevel()Gets the toplevel window that’s an ancestor of window.
Works like gdk.window.Window.getToplevel, but treats an offscreen window's embedder as its parent, using gdk.window.Window.getEffectiveParent.
See also: gdk.global.offscreenWindowGetEmbedder
Returns
the effective toplevel window containing window