[client,sdl] always set sdl->windows_created

when the window creation function is called always set the event.
This commit is contained in:
akallabeth
2025-08-22 12:09:10 +02:00
parent 0795951f72
commit 8042d7e165
2 changed files with 4 additions and 3 deletions

View File

@@ -707,6 +707,8 @@ static BOOL sdl_create_windows(SdlContext* sdl)
auto settings = sdl->context()->settings;
auto title = sdl_window_get_title(settings);
ScopeGuard guard([&]() { sdl->windows_created.set(); });
UINT32 windowCount = freerdp_settings_get_uint32(settings, FreeRDP_MonitorCount);
for (UINT32 x = 0; x < windowCount; x++)
@@ -758,8 +760,6 @@ static BOOL sdl_create_windows(SdlContext* sdl)
static_cast<int>(h),
flags };
ScopeGuard guard([&]() { sdl->windows_created.set(); });
if (!window.window())
return FALSE;

View File

@@ -613,6 +613,8 @@ static BOOL sdl_create_windows(SdlContext* sdl)
auto settings = sdl->context()->settings;
auto title = sdl_window_get_title(settings);
ScopeGuard guard1([&]() { sdl->windows_created.set(); });
UINT32 windowCount = freerdp_settings_get_uint32(settings, FreeRDP_MonitorCount);
Sint32 originX = 0;
@@ -674,7 +676,6 @@ static BOOL sdl_create_windows(SdlContext* sdl)
static_cast<int>(w),
static_cast<int>(h),
flags };
ScopeGuard guard1([&]() { sdl->windows_created.set(); });
if (!window.window())
return FALSE;