iconify window; sleep, disconnect power & external monitor... reconnect power & monitor, wake, deiconify window is sized down to (never opened/used) laptop screen unlike other apps
- iTerm2 version: 3.2.1 (not new to this)
- OS version: macos 10.14 (not new to this) com.googlecode.iterm2.plist
Detailed steps to reproduce the problem:
Using MacBook Pro (Retina, 13-inch, Early 2015). On magsafe power, with external monitor and laptop closed. Open one iterm2 window and resize to occupy most of the screen. Do same for one (native) macos Terminal window.
Iconify both the iterm2 and Terminal windows.
Sleep the laptop. Disconnect AC power, then external monitor. (... travel ... )
Return to same external display. Hook-up in this order: USB keyboard, magsafe power, external monitor. (Never open laptop screen).
Use USB keyboard to wake the laptop (displaying only to external monitor), sign-in to still running session with password.
Deiconify both existing iterm2 and Terminal windows (displaying again to same external monitor only, the only monitor they have ever shown on).
What happened: The iterm2 window has been resized smaller, I believe to fit the laptop screen size. The Terminal window by comparison (plus every other deiconified app I know of, safari/chrome browser windows, etc) do not get resized.
What should have happened: So long as an iterm2 window is never actually displayed/rendered on some smaller screen (here the laptop build-in screen), it should not get auto-resized whatsoever, like every other macos app.
Note neither the open window, nor the dock icon are ever rendered/displayed on a smaller screen.
So far as I know this has ever been the behavior of iterm2, in many older versions and older macos versions too (since mid 2015). Not a recent change. I say it's a very minor bug, but don't care if you call it an enhancement request.
Don't think it's relevant, but external display in this case is apple cinema display which provides monitor, USB hub and magsafe power thru separate cables. Also whether laptop built-in and external are mirrored or not is not relevant: all other apps don't behave this way.
see also: #6005 which mentions window resize, and detach external monitor, but otherwise is about something else; not reporting a resize down to laptop-screen size itself to be an unwanted behavior. Thanks.