From 6ac6eaec9b8aeeaec931e25d734c7849028866fd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 25 Feb 2026 18:54:55 +0100 Subject: [PATCH] [client,sdl] remove multimonitor warning --- client/SDL/SDL3/sdl_context.cpp | 39 --------------------------------- 1 file changed, 39 deletions(-) diff --git a/client/SDL/SDL3/sdl_context.cpp b/client/SDL/SDL3/sdl_context.cpp index e50a9f7bf..4aa8750fd 100644 --- a/client/SDL/SDL3/sdl_context.cpp +++ b/client/SDL/SDL3/sdl_context.cpp @@ -244,45 +244,6 @@ BOOL SdlContext::postConnect(freerdp* instance) auto sdl = get_context(context); - if (freerdp_settings_get_bool(context->settings, FreeRDP_UseMultimon)) - { - const auto driver = SDL_GetCurrentVideoDriver(); - bool buggy = false; - if (driver) - { - if (strcmp(driver, "wayland") == 0) - buggy = true; - else if (strcmp(driver, "x11") == 0) - { - auto env = SDL_GetEnvironment(); - auto xdg = SDL_GetEnvironmentVariable(env, "XDG_SESSION_TYPE"); - auto qpa = SDL_GetEnvironmentVariable(env, "QT_QPA_PLATFORM"); - if (xdg && (strcmp(xdg, "wayland") == 0)) - buggy = true; - else if (qpa && (strcmp(qpa, "wayland") == 0)) - buggy = true; - } - } - - if (buggy) - { - const auto name = SDL_GetAppMetadataProperty(SDL_PROP_APP_METADATA_NAME_STRING); - - WLog_Print(sdl->getWLog(), WLOG_WARN, - "%s is affected by wayland bug " - "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/179", - name); - WLog_Print( - sdl->getWLog(), WLOG_WARN, - "you will not be able to properly use all monitors for FreeRDP unless this is " - "resolved and the SDL library you are using supports this."); - WLog_Print(sdl->getWLog(), WLOG_WARN, - "For the time being run %s from an X11 session or only use single monitor " - "fullscreen /f", - name); - } - } - // Retry was successful, discard dialog sdl->getDialog().show(false);