diff --git a/common/xrdp_client_info.h b/common/xrdp_client_info.h index a257f907..acd145e6 100644 --- a/common/xrdp_client_info.h +++ b/common/xrdp_client_info.h @@ -108,6 +108,7 @@ struct xrdp_client_info int nego_sec_layer; /* 0, 1, 2 = RDP security layer, TLS , Negotiate */ int multimon; /* 0 = deny , 1 = allow */ + int monitorCount; /* number of monitors detected (max = 16) */ struct monitor_info minfo[16]; /* client monitor data */ }; diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index 3ee9242c..f52a080d 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -990,6 +990,8 @@ xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s) g_writeln("monitorCount= %d", monitorCount); // for debugging only + client_info->monitorCount = monitorCount; + /* Add client_monitor_data to client_info struct, will later pass to X11rdp */ for (index = 0; index < monitorCount; index++) {