Screen.getWindowStack

gdk.window.Window[] getWindowStack()

Returns a #GList of #GdkWindows representing the current window stack.

On X11, this is done by inspecting the _NET_CLIENT_LIST_STACKING property on the root window, as described in the

Extended Window Manager Hints.

If the window manager does not support the _NET_CLIENT_LIST_STACKING hint, this function returns null.

On other platforms, this function may return null, depending on whether it is implementable on that platform.

The returned list is newly allocated and owns references to the windows it contains, so it should be freed using [glib.list.List.free] and its windows unrefed using [gobject.object.ObjectWrap.unref] when no longer needed.

Returns

a

list of #GdkWindows for the current window stack, or null.