ayi I have a focus-monitor.exe that outputs to the console the filename of each process that takes focus. It's very useful for this situation. If you would like to try it, I posted it here: https://mega.nz/file/4Y8nnbSa#Pnw97sQz8bRM_bXjlrcYT_HGiaBd4kdY_6DNq0T7FWE