[client,sdl] remove display id from title

This commit is contained in:
akallabeth
2026-01-28 13:02:02 +01:00
parent 56d6836ceb
commit 3eb660ace5
2 changed files with 2 additions and 8 deletions

View File

@@ -411,9 +411,6 @@ bool SdlContext::createWindows()
if (!freerdp_settings_get_bool(settings, FreeRDP_Decorations))
flags |= SDL_WINDOW_BORDERLESS;
std::stringstream ss;
ss << title << ":" << x;
auto did = WINPR_ASSERTING_INT_CAST(SDL_DisplayID, id);
auto window = SdlWindow::create(did, title, flags, w, h);

View File

@@ -328,11 +328,8 @@ SdlWindow SdlWindow::create(SDL_DisplayID id, const std::string& title, Uint32 f
height = static_cast<Uint32>(rect.h);
}
std::stringstream ss;
ss << title << ":" << id;
SdlWindow window{
ss.str(), startupX, startupY, static_cast<int>(width), static_cast<int>(height), flags
};
SdlWindow window{ title, startupX, startupY, static_cast<int>(width), static_cast<int>(height),
flags };
if ((flags & (SDL_WINDOW_FULLSCREEN)) != 0)
{