include old method to steal focus...

experimental
Peter Repukat 7 years ago
parent 82cff9c891
commit 60b32ec7d6

@ -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()

Loading…
Cancel
Save