diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index cfa560294..37acc87c5 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1398,6 +1398,9 @@ SDL_RecreateWindow(SDL_Window * window, Uint32 flags) return -1; } } + if (flags & SDL_WINDOW_FOREIGN) { + window->flags |= SDL_WINDOW_FOREIGN; + } if (title) { SDL_SetWindowTitle(window, title);