focustakerid

Focus Taker ID identifies the culprit when a window suddenly loses focus to an unknown process.  This can occur when some driver or other piece of software is causing the active window to become inactive.

It’s on the Focus Taker ID main page.  You can read the release notes for it