diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index 355b7c2fd2..fe21fa7e9b 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -348,6 +348,10 @@ bool WIN_SetWindowPositionInternal(SDL_Window *window, UINT flags, SDL_WindowRec // Update any child windows for (child_window = window->first_child; child_window; child_window = child_window->next_sibling) { + if (!child_window->internal) { + // This child window is not yet fully initialized. + continue; + } if (!WIN_SetWindowPositionInternal(child_window, flags, SDL_WINDOWRECT_CURRENT)) { result = false; }