From 4897d0ab6fb68ff95276b67a78476ceaf2f13034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Wed, 22 Dec 2021 16:29:15 +0100 Subject: [PATCH] SEBWIN-534, #261: Fixed bug where displays connected via eDP weren't recognized as internal displays. --- SafeExamBrowser.Monitoring/Display/Display.cs | 4 ++-- SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SafeExamBrowser.Monitoring/Display/Display.cs b/SafeExamBrowser.Monitoring/Display/Display.cs index 7981e206..7735d58f 100644 --- a/SafeExamBrowser.Monitoring/Display/Display.cs +++ b/SafeExamBrowser.Monitoring/Display/Display.cs @@ -12,7 +12,7 @@ namespace SafeExamBrowser.Monitoring.Display { public string Identifier { get; set; } public bool IsActive { get; set; } - public bool IsInternal { get; set; } - public VideoOutputTechnology Technology { get; set; } + public bool IsInternal => Technology == VideoOutputTechnology.DisplayPortEmbedded || Technology == VideoOutputTechnology.Internal; + public VideoOutputTechnology Technology { get; set; } = VideoOutputTechnology.Uninitialized; } } diff --git a/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs b/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs index 4c7adbd1..27e882ac 100644 --- a/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs +++ b/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs @@ -197,7 +197,6 @@ namespace SafeExamBrowser.Monitoring.Display if (display != default(Display)) { display.IsActive &= isActive; - display.IsInternal = technology == VideoOutputTechnology.Internal; display.Technology = technology; } }