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

[Merged by Bors] - Enable drag-and-drop events on windows #3772

Closed
wants to merge 3 commits into from

Conversation

Veykril
Copy link
Contributor

@Veykril Veykril commented Jan 26, 2022

Objective

Solution

@Veykril Veykril changed the title Enable drag-and-drop events on windows again Enable drag-and-drop events on windows Jan 26, 2022
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Jan 26, 2022
@alice-i-cecile alice-i-cecile added A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior and removed S-Needs-Triage This issue needs to be labelled labels Jan 26, 2022
@alice-i-cecile
Copy link
Member

Reading through the issue thread, this fix makes a lot of sense. I'm glad that this is finally resolved.

Comment on lines 22 to 24
# we do not directly depend on cpal, but we require at least this version to be used by rodio
# so that the winit feature of drag and drop can be enabled https://github.com/RustAudio/cpal/issues/572
cpal = ">=0.13.4"
Copy link
Member

Choose a reason for hiding this comment

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

I am not very happy with adding this.

Not adding it would mean that some users would have an issue until they run cargo update.
Those users would be those:

I think this set of users is small enough to not add this line to the file

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, that's reasonable. Will just bumping rodio fix this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, rodio merely requires cpal to be 0.13, be it the currently used one or the new version, so it will stick to the old version recorded in the cargo.lock

I figured adding this requirement for a few weeks or so would be a good idea, as that will not cause people's builds to randomly break. Kind of like a transition period for the people that use bevy from the main branch instead of the crates.io version.

Copy link
Member

Choose a reason for hiding this comment

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

IMO we should just remove this. Breakage is much less of a concern than tech debt for this project.

@james7132 james7132 added the P-Regression Functionality that used to work but no longer does. Add a test for this! label Jan 26, 2022
Copy link
Contributor

@Sheepyhead Sheepyhead left a comment

Choose a reason for hiding this comment

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

I can confirm this fixes #4412 , any chance we could come to an agreement that lets this PR get merged?

@alice-i-cecile
Copy link
Member

@Veykril are you free to fix this up? I'd like to move forward with this, and the remaining issue is quite minor.

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Apr 4, 2022
@cart
Copy link
Member

cart commented Apr 4, 2022

bors r+

bors bot pushed a commit that referenced this pull request Apr 4, 2022
# Objective

- Fixes #2096

## Solution

- This PR enables the drag-and-drop feature for winit on windows again, as the collision issue between cpal and winit has been fixed in RustAudio/cpal#597. I confirmed the drag and drop example working on windows 10 with this change.
- ~~It also bumps the rodio version, though this is not strictly necessary.~~
@bors bors bot changed the title Enable drag-and-drop events on windows [Merged by Bors] - Enable drag-and-drop events on windows Apr 4, 2022
@bors bors bot closed this Apr 4, 2022
aevyrie pushed a commit to aevyrie/bevy that referenced this pull request Jun 7, 2022
# Objective

- Fixes bevyengine#2096

## Solution

- This PR enables the drag-and-drop feature for winit on windows again, as the collision issue between cpal and winit has been fixed in RustAudio/cpal#597. I confirmed the drag and drop example working on windows 10 with this change.
- ~~It also bumps the rodio version, though this is not strictly necessary.~~
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

- Fixes bevyengine#2096

## Solution

- This PR enables the drag-and-drop feature for winit on windows again, as the collision issue between cpal and winit has been fixed in RustAudio/cpal#597. I confirmed the drag and drop example working on windows 10 with this change.
- ~~It also bumps the rodio version, though this is not strictly necessary.~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior P-Regression Functionality that used to work but no longer does. Add a test for this! S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drag and drop example does not react
6 participants