MacOS fullscreen side-by-side resizes after wake up
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
-
iTerm2 version: Build 3.5.5beta1
-
OS version: Sonoma 14.6.1
-
MacbookPro M1 Max 14"
-
5k LG 27inch UltraFine monitor (Thunderbolt connection)
Detailed steps to reproduce the problem
Some key settings I have set:
- Window restoration policy:
Use System Window Restoration Setting
- Restore windows to same Spaces:
✅ - Native full screen windows:
✅
- Open iTerm2 full screen in a space with another window side by side (e.g. Safari)
- Let the computer go to sleep
- Wake up the computer
What happened
On waking up, the window is vertically resized incorrectly. Dragging the separation bar horizontally fixes the vertical size.
What should have happened
The vertical size should be intact.
My initial random guess was: the way iTerm2 finds its vertical size upon waking up could be by looking at the height of the 1st display in an array of available displays, and sometimes that display happens to be my MacBook Pro, and not the external monitor. And as soon as I drag the separation bar, it fixes it because it looks at the current display height. However, I'm not sure if this theory is close to correct, because this might also be happening when only one screen is being used. I'm not 100% sure.