An application on my Mac seems to want to take focus away roughly every 4-5 minutes. I hate to complain, but it is quite distracting and rather irritating. If I am in the middle of typing and not paying attention my keystrokes will be lost, and I have to click on the active window to regain focus.
Unfortunately I do not know what process is causing this. Whatever it is does not change the name of the current window process. For example, while typing this, I will lose focus on Google Chrome, but the menu will remain Chrome
. The active window simply loses focus, inexplicably.
I would like to know how to detect what this process is that is taking focus.
I have considered a polling of the currently focused window with something like:
$ watch currentWindowFocusedName
Unfortunately, I do not know of a currentWindowFocused
command, but it's where my thoughts start.
I have eliminated all open applications yet the issue persists, so I imagine it must be a background process of some sort, but I have 177 of those and I am not sure which ones can be safely closed.
Any assistance would be greatly appreciated.