Skip to content

Conversation

@AlvaroParker
Copy link
Contributor

@AlvaroParker AlvaroParker commented Sep 29, 2025

Closes #39117

Some window managers (example: hyprland hyprwm/Hyprland#11229) still won't open a floating file chooser because they don't support the XDG foreign protocol yet: https://wayland.app/protocols/xdg-foreign-unstable-v2

Release Notes:

  • Fixed file chooser not floating
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Sep 29, 2025
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Sep 29, 2025
@AlvaroParker AlvaroParker force-pushed the fix-floating-file-chooser branch from 7bae584 to fdcadd5 Compare September 30, 2025 04:05
@AlvaroParker AlvaroParker force-pushed the fix-floating-file-chooser branch from fdcadd5 to 1688ad3 Compare September 30, 2025 04:20
@zed-industries-bot
Copy link

zed-industries-bot commented Sep 30, 2025

Messages
📖

This PR includes links to the following GitHub Issues: #hyprwm/Hyprland#11229
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 3948250

@AlvaroParker AlvaroParker marked this pull request as ready for review September 30, 2025 04:40
@JosephTLyons
Copy link
Collaborator

Thanks for the PR @AlvaroParker - we'll get to a review ASAP!

@yara-blue
Copy link
Member

Thanks for the PR @AlvaroParker - we'll get to a review ASAP!

Was reviewing this last week. It seems to be great. I'm a little unsure about returning the oneshot is the best way to approach. Should we return a future? or make the member acync?

@AlvaroParker
Copy link
Contributor Author

Maybe using BoxFuture is a better aproach?
If we make the member function async instead, we wouldn't be able to await it inside the task on the foreground executor because the return type doesn't implement Send

@yara-blue
Copy link
Member

we wouldn't be able to await it inside the task on the foreground executor because the return type doesn't implement Send

Then we just make it send :)

I've gone ahead and done so over here: main...send-WindowIdentifier-futures

Its a tweak upon this PR. If your okay with it I'll close this and squash merge.

@AlvaroParker
Copy link
Contributor Author

Sure!

@yara-blue
Copy link
Member

Sure!

On second thought, if I do that your no longer the author but a co-author. That feels wrong to me. Could you pull in the changes from that branch into this PR? Then I can merge it with you as primary author as it should be.

@AlvaroParker AlvaroParker force-pushed the fix-floating-file-chooser branch from 2a7c633 to 3948250 Compare October 7, 2025 10:21
@AlvaroParker
Copy link
Contributor Author

Done, thanks!

@yara-blue yara-blue merged commit 64eec67 into zed-industries:main Oct 7, 2025
23 checks passed
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Oct 11, 2025
Closes zed-industries#39117 

Some window managers (example: hyprland
hyprwm/Hyprland#11229) still won't open a
floating file chooser because they don't support the XDG foreign
protocol yet: https://wayland.app/protocols/xdg-foreign-unstable-v2

Release Notes:

- Fixed file chooser not floating

---------

Co-authored-by: David Kleingeld <davidsk@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 community champion Issues filed by our amazing community champions! 🫶

4 participants