From eca4017c8bf120d12e11d33cb31d73e54a1abbe2 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 31 Jul 2023 08:54:07 +0200 Subject: [PATCH] [client,sdl] enable multimon support for display channel --- client/SDL/sdl_disp.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/SDL/sdl_disp.cpp b/client/SDL/sdl_disp.cpp index ba291f511..f5503eae9 100644 --- a/client/SDL/sdl_disp.cpp +++ b/client/SDL/sdl_disp.cpp @@ -96,15 +96,12 @@ BOOL sdlDispContext::sendResize() if (!settings_changed()) return TRUE; - /* TODO: Multimonitor support for wayland - if (sdl->fullscreen && (settings->MonitorCount > 0)) + if (_sdl->fullscreen && (settings->MonitorCount > 0)) { - if (sdlDisp->sendLayout(settings->MonitorDefArray, - settings->MonitorCount) != CHANNEL_RC_OK) - return FALSE; + if (sendLayout(settings->MonitorDefArray, settings->MonitorCount) != CHANNEL_RC_OK) + return FALSE; } else - */ { _waitingResize = TRUE; layout.Flags = DISPLAY_CONTROL_MONITOR_PRIMARY;