SDL_GetWindows() follows the SDL_GetStringRule

This commit is contained in:
Sam Lantinga
2024-07-18 08:30:50 -07:00
parent 8ca6caeda5
commit bdafc8e212
4 changed files with 8 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
static SDL_Window *createVideoSuiteTestWindow(const char *title)
{
SDL_Window *window;
SDL_Window **windows;
SDL_Window * const *windows;
SDL_Event event;
int w, h;
int count;
@@ -34,7 +34,6 @@ static SDL_Window *createVideoSuiteTestWindow(const char *title)
windows = SDL_GetWindows(&count);
SDLTest_AssertCheck(windows != NULL, "Validate that returned window list is not NULL");
SDLTest_AssertCheck(windows[0] == window, "Validate that the window is first in the window list");
SDL_free(windows);
/* Wayland and XWayland windows require that a frame be presented before they are fully mapped and visible onscreen.
* This is required for the mouse/keyboard grab tests to pass.