[client,sdl] enable multimon support for display channel

This commit is contained in:
Armin Novak 2023-07-31 08:54:07 +02:00 committed by akallabeth
parent aa2c48840a
commit eca4017c8b

View File

@ -96,15 +96,12 @@ BOOL sdlDispContext::sendResize()
if (!settings_changed()) if (!settings_changed())
return TRUE; return TRUE;
/* TODO: Multimonitor support for wayland if (_sdl->fullscreen && (settings->MonitorCount > 0))
if (sdl->fullscreen && (settings->MonitorCount > 0))
{ {
if (sdlDisp->sendLayout(settings->MonitorDefArray, if (sendLayout(settings->MonitorDefArray, settings->MonitorCount) != CHANNEL_RC_OK)
settings->MonitorCount) != CHANNEL_RC_OK) return FALSE;
return FALSE;
} }
else else
*/
{ {
_waitingResize = TRUE; _waitingResize = TRUE;
layout.Flags = DISPLAY_CONTROL_MONITOR_PRIMARY; layout.Flags = DISPLAY_CONTROL_MONITOR_PRIMARY;