Use AppFocusChanged().

This commit is contained in:
Steve Checkoway
2006-09-15 23:34:24 +00:00
parent 37314eb432
commit 06268ef92b
+1 -5
View File
@@ -106,12 +106,8 @@ static bool ChangeAppPri()
static void CheckFocus() static void CheckFocus()
{ {
static bool bHasFocus = true; if( !HOOKS->AppFocusChanged() )
bool bHasFocusNow = HOOKS->AppHasFocus();
if( bHasFocus == bHasFocusNow )
return; return;
bHasFocus = bHasFocusNow;
/* If we lose focus, we may lose input events, especially key releases. */ /* If we lose focus, we may lose input events, especially key releases. */
INPUTFILTER->Reset(); INPUTFILTER->Reset();