Dual monitor: losing focus on terminal app when using cmd+tab
You can press CMD` to switch between windows of the same application.
This doesn't fix the root cause of the focus issue, but does allow you to select the correct Terminal window via the keyboard.