Move GetWindowsZOrder to IWindowingPlatform by MrJul · Pull Request #20633 · AvaloniaUI/Avalonia (original) (raw)

What does the pull request do?

This PR is moving GetWindowsZOrder from IWindowImpl to IWindowingPlatform.
The old implementation was a bit odd because it used an IWindowImpl instance to operate on several unrelated windows.

Moreover, the windows parameter has been changed from Span<Window> to ReadOnlySpan<IWindowImpl> because it should not be modified, and taking Window objects directly was breaking the separation between Window and IWindowImpl.