SDL: video: Fix asserts calling SetWindowProgress{State,Value} when creating popup windows

From e4c5b72fd72c7457d4a64c8a0eb7e5983bc149df Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 6 Oct 2025 17:31:46 -0700
Subject: [PATCH] video: Fix asserts calling SetWindowProgress{State,Value}
 when creating popup windows

---
 src/video/SDL_video.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 03318420c93f8..d961db578945e 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2309,9 +2309,11 @@ static void SDL_FinishWindowCreation(SDL_Window *window, SDL_WindowFlags flags)
     }
 
 #if defined(SDL_PLATFORM_LINUX)
-    // On Linux the progress state is persisted throughout multiple program runs, so reset state on window creation
-    SDL_SetWindowProgressState(window, SDL_PROGRESS_STATE_NONE);
-    SDL_SetWindowProgressValue(window, 0.0f);
+    if (!SDL_WINDOW_IS_POPUP(window)) {
+        // On Linux the progress state is persisted throughout multiple program runs, so reset state on window creation
+        SDL_SetWindowProgressState(window, SDL_PROGRESS_STATE_NONE);
+        SDL_SetWindowProgressValue(window, 0.0f);
+    }
 #endif
 }