Frontmost window focus is lost when switching out and back into iTerm
- iTerm2 version: 3.4.4
- OS version: 11.1 (20C69)
- Computer Specs: Macbook Air M1
- .googlecode.iterm2.plist file
- iTermFocusIssue Screen Capture Proof of Issue
Detailed steps to reproduce the problem:
- Have a bunch of iTerm windows open (I regular with ~8-10)
- Have a few other programs open, namely a web browser
- Go to iTerm and make sure you are aware of what window you are focused on (eg type something, see example above)
- CMD-TAB to a background application (Eg: Browser) and release CMD-TAB to the Background application gets focus
- CMD-TAB back to iTerm and release CMD-TAB so that iTerm is now the frontmost application
- Type something again (without using the mouse) and you'll have the command be typed into a different window occasionally.
What happened:
Occasionally when you do the above, the frontmost window in iTerm changes. This is insanely aggravating when you're reading documentation and/or following along steps to "do something" which you're actively doing in an iTerm window. When you switch out of the application and back in and then paste right away, it goes to a completely different window. Often times my iTerm windows do not overlap, so when I paste it's in some completely other iTerm console perhaps a different machine I'm on.
Because of this issue lately I've found myself being very pedantic of every time I switch back into iTerm I type a few keys to make SURE I'm in the right window and if not clicking back into the window I expect, then pasting/typing the commands I needed to type. This, which I hope you can conclude with me, is an insane waste of my time and energy.
What should have happened:
When focusing away and back onto iTerm the window stack should remain exactly the same, the frontmost iTerm window should remain the frontmost when switching back into iTerm.