Skip to content
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

windows: Fix window not displaying correctly on launch #19124

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

JunkuiZhang
Copy link
Contributor

Closes #18705 (comment)

This PR fixes the issue where the Zed window was not displaying correctly on launch. Now, when Zed is closed in a maximized state, it will reopen in a maximized state.

On macOS, when a window is created but not yet visible, calling zoom or toggle_fullscreen will still affect the hidden window. However, this behavior is different on Windows, so special handling is required.

Also, since #18705 hasn't been reviewed yet, I'm not sure if this PR should be merged now or if it should wait until #18705 is reviewed first.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 12, 2024
@JunkuiZhang JunkuiZhang changed the title windows: Fix restore windows: Fix window not displaying correctly on launch Oct 12, 2024
@getpool
Copy link

getpool commented Oct 16, 2024

@JunkuiZhang tks.

Hello, administrator, can you please merge this PR?

@mikayla-maki
Copy link
Contributor

thank you!

@mikayla-maki mikayla-maki merged commit 338bf3f into zed-industries:main Oct 16, 2024
9 checks passed
@JunkuiZhang JunkuiZhang deleted the windows/fix-restore branch October 17, 2024 15:58
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…s#19124)

Closes zed-industries#18705 (comment)

This PR fixes the issue where the Zed window was not displaying
correctly on launch. Now, when Zed is closed in a maximized state, it
will reopen in a maximized state.

On macOS, when a window is created but not yet visible, calling `zoom`
or `toggle_fullscreen` will still affect the hidden window. However,
this behavior is different on Windows, so special handling is required.

Also, since zed-industries#18705 hasn't been reviewed yet, I'm not sure if this PR
should be merged now or if it should wait until zed-industries#18705 is reviewed
first.


Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants