How to figure which app is stealing focus once every x minutes?

Recently I noticed that some kind of app is stealing focus – even just now, I was in the middle of typing this sentence, and suddenly none of my key presses were registering, until I used mouse to click on this input box?

Is there an app, tool, which will show which is currently activated app is? Menu bar still shows Safari, so this doesn’t work.

Any help would be appreciated!

This Python script has worked for me in the past: macos - Is there a way to detect what program is stealing focus on my Mac? - Ask Different

This has been happening to me since upgrading to Sonoma. Please post back if you figure out which app is stealing focus.

1 Like