Here is where I found it.
Preventing Applications from Stealing the Focus
To prevent applications from stealing the focus from the window you are working
-
Start Regedit
-
Go to HKEY_CURRENT_USER \ Control Panel \ Desktop
-
Edit the key ForegroundLockTimeout
-
Give it a value of 00030d40