[ Version ( since = "2.10" ) ]
public List<Window>? get_window_stack ()
Returns a List of Windows 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 g_list_free and its windows unrefed using unref when no longer needed.
this |
a Screen |
a list of Windows for the current window stack, or null . |