diff --git a/src/ManagedShell.WindowsTasks/ApplicationWindow.cs b/src/ManagedShell.WindowsTasks/ApplicationWindow.cs index 03411df5..2612d3f8 100644 --- a/src/ManagedShell.WindowsTasks/ApplicationWindow.cs +++ b/src/ManagedShell.WindowsTasks/ApplicationWindow.cs @@ -301,8 +301,9 @@ public IntPtr HMonitor { get { - if (_hMonitor == IntPtr.Zero) + if (_hMonitor == IntPtr.Zero || EnvironmentHelper.IsWindows8OrBetter) { + // Ignore the cache on Windows 8+, as it may be wrong. SetMonitor(); }