From 3eb660ace5796e26dee51b22206f9bc8693e9c43 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 28 Jan 2026 13:02:02 +0100 Subject: [PATCH] [client,sdl] remove display id from title --- client/SDL/SDL3/sdl_context.cpp | 3 --- client/SDL/SDL3/sdl_window.cpp | 7 ++----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/client/SDL/SDL3/sdl_context.cpp b/client/SDL/SDL3/sdl_context.cpp index 9655c54c2..9351c7adf 100644 --- a/client/SDL/SDL3/sdl_context.cpp +++ b/client/SDL/SDL3/sdl_context.cpp @@ -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); diff --git a/client/SDL/SDL3/sdl_window.cpp b/client/SDL/SDL3/sdl_window.cpp index be1241d3e..b5e2dd90c 100644 --- a/client/SDL/SDL3/sdl_window.cpp +++ b/client/SDL/SDL3/sdl_window.cpp @@ -328,11 +328,8 @@ SdlWindow SdlWindow::create(SDL_DisplayID id, const std::string& title, Uint32 f height = static_cast(rect.h); } - std::stringstream ss; - ss << title << ":" << id; - SdlWindow window{ - ss.str(), startupX, startupY, static_cast(width), static_cast(height), flags - }; + SdlWindow window{ title, startupX, startupY, static_cast(width), static_cast(height), + flags }; if ((flags & (SDL_WINDOW_FULLSCREEN)) != 0) {