#357, allow taskbar restore during full-screen game play when -fix_taskbar=1

This commit is contained in:
Kang Yu 2024-10-02 17:01:56 -07:00
parent 9d80f6c1b2
commit 860034633a
2 changed files with 8 additions and 4 deletions

View file

@ -108,7 +108,7 @@ namespace PersistentWindows.Common
public bool showDesktop = false; // show desktop when display changes
public int fixZorder = 1; // 1 means restore z-order only for snapshot; 2 means restore z-order for all; 0 means no z-order restore at all
public int fixZorderMethod = 5; // bit i represent restore method for pass i
public bool fixTaskBar = true;
public int fixTaskBar = -1;
public bool pauseAutoRestore = false;
public bool promptSessionRestore = false;
public bool redrawDesktop = false;
@ -3864,9 +3864,10 @@ namespace PersistentWindows.Common
if (IsTaskBar(hWnd))
{
if (!fixTaskBar && !restoringFromDB && !restoringSnapshot)
continue;
if (fixTaskBar == 0 && !restoringFromDB && !restoringSnapshot)
continue; //auto restore taskbar disabled
if (fixTaskBar == -1) //disable possible bogus taskbar restore after game play due to inaccurate position report
if (fullScreenGamingWindow != IntPtr.Zero || fullScreenGamingWindows.Count > 0 || exitFullScreenGaming)
continue;

View file

@ -206,7 +206,10 @@ if not errorlevel 1 goto wait_to_finish";
fix_unminimized_window = false;
break;
case "-fix_taskbar=0":
pwp.fixTaskBar = false;
pwp.fixTaskBar = 0;
break;
case "-fix_taskbar=1":
pwp.fixTaskBar = 1;
break;
case "-foreground_background_dual_position=0":
pwp.enableDualPosSwitch = false;