[client,x11] fix monitor detection

This commit is contained in:
akallabeth 2023-11-25 20:39:52 +01:00 committed by akallabeth
parent 1e88b2fa37
commit ed3a1113f5

View File

@ -1202,9 +1202,11 @@ static BOOL xf_pre_connect(freerdp* instance)
{
if (!xf_keyboard_init(xfc))
return FALSE;
xf_detect_monitors(xfc, &maxWidth, &maxHeight);
}
if (!xf_detect_monitors(xfc, &maxWidth, &maxHeight))
return FALSE;
if (maxWidth && maxHeight && !freerdp_settings_get_bool(settings, FreeRDP_SmartSizing))
{
if (!freerdp_settings_set_uint32(settings, FreeRDP_DesktopWidth, maxWidth))