Compare commits

...

1 commit

Author SHA1 Message Date
Damian Büchel
532f4a38d6 SEBWIN-419: Attempt to fix desktop reinitalization issue when closing / opening laptop. 2020-09-02 13:19:45 +02:00

View file

@ -7,6 +7,7 @@
*/ */
using System; using System;
using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Microsoft.Win32; using Microsoft.Win32;
using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.Logging.Contracts;
@ -68,7 +69,7 @@ namespace SafeExamBrowser.Monitoring.Display
private void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e) private void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e)
{ {
logger.Info("Display change detected!"); logger.Info("Display change detected!");
DisplayChanged?.Invoke(); Task.Run(() => DisplayChanged?.Invoke());
} }
private void InitializeWorkingArea(int taskbarHeight) private void InitializeWorkingArea(int taskbarHeight)