Skip to content

Commit

Permalink
Reissue minimize window message after the game exits
Browse files Browse the repository at this point in the history
  • Loading branch information
WombatFromHell committed Jan 17, 2018
1 parent 1254eb8 commit 3961e81
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion OriginSteamOverlayLauncher/ProcessTracking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,16 @@ public void ProcessLauncher(Settings setHnd, IniFile iniHnd)
*/
if (setHnd.LauncherPath != String.Empty && Program.IsRunningPID(launcherProc.Id) && !setHnd.DoNotClose)
{// found the launcher left after the game exited
Thread.Sleep(setHnd.PostGameWaitTime * 1000); // let Origin sync with the cloud
Thread.Sleep(1000);

// resend the message to minimize our launcher
if (setHnd.MinimizeLauncher)
Program.MinimizeWindow(launcherProc.MainWindowHandle);

// let Origin sync with the cloud
Thread.Sleep(setHnd.PostGameWaitTime - 1 * 1000);

// finally, kill our launcher proctree
Program.KillProcTreeByName(launcherName);
}

Expand Down

0 comments on commit 3961e81

Please sign in to comment.