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

gpui: Fix show: false support on Windows to create an invisible window #18161

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

huacnlee
Copy link
Contributor

@huacnlee huacnlee commented Sep 20, 2024

Release Notes:

  • N/A

The show of WindowOptions is valid on macOS but not on Windows, this changes to fix it to support create an invisible window.

cargo run -p gpui --example window

Before

before.2024-09-21.031338.mp4

After

after.2024-09-21.031151.mp4
CleanShot.2024-09-23.at.16.03.59.mp4

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Sep 20, 2024
@huacnlee huacnlee changed the title windows: Fix show: false support on Windows to create a invisable w… windows: Fix show: false support on Windows to create an invisible window Sep 20, 2024
@huacnlee huacnlee changed the title windows: Fix show: false support on Windows to create an invisible window gpui: Fix show: false support on Windows to create an invisible window Sep 20, 2024
Copy link
Contributor

@mikayla-maki mikayla-maki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small changes, then I'd be happy to merge this, thank you!

crates/gpui/examples/window.rs Outdated Show resolved Hide resolved
crates/gpui/examples/window.rs Outdated Show resolved Hide resolved
@mikayla-maki
Copy link
Contributor

Thank you!

@mikayla-maki mikayla-maki merged commit 39be9e5 into zed-industries:main Oct 1, 2024
9 checks passed
mikayla-maki added a commit that referenced this pull request Oct 1, 2024
…on (#18164)

Release Notes:

- N/A

Continue #18161 to fix `cx.hide`, `cx.activate` method on Windows to
hide/show application.

## After


https://github.com/user-attachments/assets/fe0070f9-7844-4c2a-b859-3e22ee4b8d22

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…dow (zed-industries#18161)

Release Notes:

- N/A
- 
The `show` of WindowOptions is valid on macOS but not on Windows, this
changes to fix it to support create an invisible window.

```bash
cargo run -p gpui --example window
```

## Before



https://github.com/user-attachments/assets/4157bdaa-39a7-44df-bbdc-30b00e9c61e9


## After



https://github.com/user-attachments/assets/d48fa524-0caa-4f87-932d-01d7a468c488


https://github.com/user-attachments/assets/dd052f15-c8db-4a2a-a6af-a7c0ffecca84
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…on (zed-industries#18164)

Release Notes:

- N/A

Continue zed-industries#18161 to fix `cx.hide`, `cx.activate` method on Windows to
hide/show application.

## After


https://github.com/user-attachments/assets/fe0070f9-7844-4c2a-b859-3e22ee4b8d22

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
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.

2 participants