mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[client,sdl] always set sdl->windows_created
when the window creation function is called always set the event.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user