2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-17 03:26:02 +00:00

include old method to steal focus...

This commit is contained in:
Peter Repukat 2017-12-30 17:04:03 +01:00
parent 82cff9c891
commit 60b32ec7d6

View File

@ -419,6 +419,14 @@ void SteamTargetRenderer::stealFocus(HWND hwnd)
EnableWindow(hwnd, TRUE);
AttachThreadInput(dwCurrentThread, dwFGThread, FALSE);
sf::Clock clock;
while (!SetForegroundWindow(hwnd) && clock.getElapsedTime().asMilliseconds() < 1000) //try to forcefully set foreground window
{
Sleep(1);
}
}
void SteamTargetRenderer::launchApp()