From 474d7669263b7d8263290b1530b84f8f29493026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Thu, 16 Feb 2023 22:59:58 +0100 Subject: [PATCH] SEBWIN-611: Second attempt at fixing resizing issue. --- .../Windows/LockScreen.xaml.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.UserInterface.Desktop/Windows/LockScreen.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/Windows/LockScreen.xaml.cs index c2ec5496..bbae4983 100644 --- a/SafeExamBrowser.UserInterface.Desktop/Windows/LockScreen.xaml.cs +++ b/SafeExamBrowser.UserInterface.Desktop/Windows/LockScreen.xaml.cs @@ -74,14 +74,18 @@ namespace SafeExamBrowser.UserInterface.Desktop.Windows { foreach (var window in windows) { + window.Topmost = false; + window.WindowState = WindowState.Normal; + window.Activate(); window.Topmost = true; window.WindowState = WindowState.Maximized; - window.Activate(); } + Topmost = false; + WindowState = WindowState.Normal; + Activate(); Topmost = true; WindowState = WindowState.Maximized; - Activate(); }); }