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:
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…
Reference in New Issue
Block a user