From 2fd2ff129bb3600230fa8cec9ca0e1ed734d23f8 Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Tue, 24 Sep 2024 10:04:11 -0700 Subject: [PATCH] avoid bogus taskbar restore when exit full-screen game --- .../Common/PersistentWindowProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index 6e79731..7cc6139 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -3857,7 +3857,7 @@ namespace PersistentWindows.Common if (!fixTaskBar && !restoringFromDB && !restoringSnapshot) continue; - if (fullScreenGamingWindows.Count > 0 || exitFullScreenGaming) + if (fullScreenGamingWindow != IntPtr.Zero || fullScreenGamingWindows.Count > 0 || exitFullScreenGaming) continue; int taskbarMovable = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarSizeMove", 1);