From 27ef6aabbbcd46c1d555458a948fa4333c53b1ad Mon Sep 17 00:00:00 2001 From: Christopher Pitstick Date: Sun, 20 Mar 2022 20:08:31 -0400 Subject: [PATCH] Update for unification of monitor processing Related to https://github.com/neutrinolabs/xrdp/pull/1895 --- module/rdpClientCon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/rdpClientCon.c b/module/rdpClientCon.c index a6ab705a..620dfc7b 100644 --- a/module/rdpClientCon.c +++ b/module/rdpClientCon.c @@ -971,14 +971,14 @@ rdpClientConProcessMsgClientInfo(rdpPtr dev, rdpClientCon *clientCon) { LLOGLN(0, (" client can not do new(color) cursor")); } - if (clientCon->client_info.monitorCount > 0) + if (clientCon->client_info.display_sizes.monitorCount > 0) { LLOGLN(0, (" client can do multimon")); - LLOGLN(0, (" client monitor data, monitorCount=%d", clientCon->client_info.monitorCount)); + LLOGLN(0, (" client monitor data, monitorCount=%d", clientCon->client_info.display_sizes.monitorCount)); clientCon->doMultimon = 1; dev->doMultimon = 1; - memcpy(dev->minfo, clientCon->client_info.minfo, sizeof(dev->minfo)); - dev->monitorCount = clientCon->client_info.monitorCount; + memcpy(dev->minfo, clientCon->client_info.display_sizes.minfo, sizeof(dev->minfo)); + dev->monitorCount = clientCon->client_info.display_sizes.monitorCount; box.x1 = dev->minfo[0].left; box.y1 = dev->minfo[0].top;