video: Preserve the flag to restore popup windows with the parent when recreating the window during renderer initialization
This commit is contained in:
@@ -2077,7 +2077,9 @@ int SDL_RecreateWindow(SDL_Window *window, Uint32 flags)
|
|||||||
|
|
||||||
/* Restore video mode, etc. */
|
/* Restore video mode, etc. */
|
||||||
if (!(window->flags & SDL_WINDOW_FOREIGN)) {
|
if (!(window->flags & SDL_WINDOW_FOREIGN)) {
|
||||||
|
const SDL_bool restore_on_show = window->restore_on_show;
|
||||||
SDL_HideWindow(window);
|
SDL_HideWindow(window);
|
||||||
|
window->restore_on_show = restore_on_show;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tear down the old native window */
|
/* Tear down the old native window */
|
||||||
|
|||||||
Reference in New Issue
Block a user