don't flash when already the active window

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3177 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2009-04-18 23:48:35 +00:00
parent caa9dffb2c
commit 42b4577802
2 changed files with 3 additions and 2 deletions

View file

@ -1124,7 +1124,8 @@ void Sys_SendKeyEvents (void)
void Sys_ServerActivity(void)
{
#ifndef SERVERONLY
FlashWindow(mainwindow, true);
if (GetActiveWindow() != mainwindow)
FlashWindow(mainwindow, true);
#endif
}

View file

@ -965,7 +965,7 @@ void Sys_ServerActivity(void)
#undef STRINGF
}
if (wnd)
if (wnd && GetActiveWindow() != wnd)
FlashWindow(wnd, true);
}