SEBWIN-117: Fixed minor issue overwriting the actual original working area on display changes.

This commit is contained in:
dbuechel 2019-03-26 10:56:09 +01:00
parent f8cfbffcd4
commit 5bdf910e54

View file

@ -75,8 +75,11 @@ namespace SafeExamBrowser.Monitoring.Display
{
var identifier = GetIdentifierForPrimaryDisplay();
originalWorkingArea = nativeMethods.GetWorkingArea();
LogWorkingArea($"Saved original working area for {identifier}", originalWorkingArea);
if (originalWorkingArea == null)
{
originalWorkingArea = nativeMethods.GetWorkingArea();
LogWorkingArea($"Saved original working area for {identifier}", originalWorkingArea);
}
var area = new Bounds
{