avoid bogus taskbar restore when exit full-screen game

This commit is contained in:
Kang Yu 2024-09-24 10:04:11 -07:00
parent cf5e26af87
commit 2fd2ff129b

View file

@ -3857,7 +3857,7 @@ namespace PersistentWindows.Common
if (!fixTaskBar && !restoringFromDB && !restoringSnapshot) if (!fixTaskBar && !restoringFromDB && !restoringSnapshot)
continue; continue;
if (fullScreenGamingWindows.Count > 0 || exitFullScreenGaming) if (fullScreenGamingWindow != IntPtr.Zero || fullScreenGamingWindows.Count > 0 || exitFullScreenGaming)
continue; continue;
int taskbarMovable = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarSizeMove", 1); int taskbarMovable = (int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarSizeMove", 1);