1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00
This commit is contained in:
Philip Rebohle 2024-11-08 22:55:50 +01:00
parent 9b272fb3f6
commit 3d8a9041e8

View File

@ -262,12 +262,13 @@ namespace dxvk::wsi {
bool Win32WsiDriver::isOccluded(HWND hWindow) { bool Win32WsiDriver::isOccluded(HWND hWindow) {
if (::GetForegroundWindow() == hWindow)
{
m_lastForegroundTimestamp = GetTickCount64();
return false; return false;
} // if (::GetForegroundWindow() == hWindow)
return m_lastForegroundTimestamp && GetTickCount64() - m_lastForegroundTimestamp > 100; // {
// m_lastForegroundTimestamp = GetTickCount64();
// return false;
// }
// return m_lastForegroundTimestamp && GetTickCount64() - m_lastForegroundTimestamp > 100;
} }