-
-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window is resized after Mac sleeps when connected to external monitor #4633
Comments
I have the same issue with an M1 MBP and an external monitor; when coming back from sleep, the window height of Wezterm is shrunk every time. • I have the external monitor set as the main display at a resolution of 3440 x 1440, and the MBP display mirrors the external display. • Note: I also have the same issue with Alacritty; aside from that, I haven't seen this with any other applications. |
I've been experiencing this same issue. My window after waking from sleep looks just like the screenshots of the issue poster. I recently switched from Alacritty to WezTerm hoping the issue was just with Alacritty, but the issue is exactly the same. I've spent some time troubleshooting and have determined that this issue isn't present in iTerm. It also exists whether my window manager app Rectangle.app is running or not. Please let me know if there's more info I can provide. Alternatively I'm wondering if there could be a workaround to add an event for when the machine wakes from sleep. Environment:
|
I'm having the same issue, and to reproduce it I have the external display set as extended, and use both the MacBook display and the external one simultaneously. Then I lock my Mac (Cmd+Ctrl+Q), then press Esc to turn off the screen, after this, I wait until my external display shows that the input was lost and turned off. I tested the kitty terminal and this issue doesn't happen. |
To keep this issue alive, I'll add simply: I'm having this issue as well. |
Same here |
Had to switch to kitty because of this. Also albeit out of scope but font rendering is really hard to get right in wezterm. More nobs to turn comparing to Kitty but much harder to get it right. Kitty is bearable with the default settings. |
I can confirm. Alacritty has this same issue. |
Same issue, M1 Max Studio with external monitor |
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20231201-121352-6d58e519
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
When my M1 MBP is connected to my 4K external display and is in clamshell mode, if it goes to sleep and is awakened, wezterm windows get smaller (mostly the height but the width also changes a little). I've only been able to reproduce this when my macOS Display settings are scaled. When selecting 3840 x 2160 as the resolution, the wezterm window is not resized after the Mac sleeps and wakes.
To Reproduce
Put Mac to sleep
Wake Mac
The Wezterm window is now much smaller in height (the width changed a little as well):
Configuration
The issue also occurs with no config (
wezterm -n
)Expected Behavior
The wezterm windows should remain the same size after waking the Mac.
Logs
After executing
WEZTERM_LOG=wezterm_gui::termwindow=trace,wezterm_gui::termwindow::render=info,info wezterm start --always-new-process
, I put my MBP to sleep/locked the screen. These are the logs once the MBP was awakened/unlocked:Debug Overlay:
Anything else?
I looked at many other issues that were possibly similar but this problem seemed to be different. Here are those issues:
I also tried to reproduce the issue with other applications including other terminals but all of them kept their window size after sleep/wake.
The text was updated successfully, but these errors were encountered: