[client,sdl] remove multimonitor warning

This commit is contained in:
Armin Novak
2026-02-25 18:54:55 +01:00
parent aeb4bfe696
commit 6ac6eaec9b

View File

@@ -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);