2914: After initialization: Agressively try to grab window again r=heinrich5991 a=def-

Since some users on Windows report window not being initially focussed. Reincarnation of https://github.com/ddnet/ddnet/pull/2897 but not for OSX

I think this doesn't hurt.

Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-09-26 13:02:53 +00:00 committed by GitHub
commit 87e86834c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -374,6 +374,10 @@ void CGameClient::OnInit()
m_GameWorld.m_pTuningList = m_aTuningList;
m_pMapimages->SetTextureScale(g_Config.m_ClTextEntitiesSize);
// Agressively try to grab window again since some Windows users report
// window not being focussed after starting client.
Graphics()->SetWindowGrab(true);
}
void CGameClient::OnUpdate()