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

Make drag and drop optional (fixes OleInitialize failure #1255) #1524

Merged
merged 4 commits into from
Jun 28, 2020

Conversation

chemicstry
Copy link
Contributor

Since #1260 is stalled and based on discussion there I suggest an alternative fix for the OleInitialize problem (#1255). This makes drag and drop optional and allows winit to be used together with libraries like cpal without drag and drop functionality. I also improved the panic message as previous was really not informative.

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@Dooskington
Copy link

Keeping an eye on this, I am patiently waiting to be able to use cpal and winit together :)

Copy link
Contributor

@Osspial Osspial left a comment

Choose a reason for hiding this comment

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

I'm fine with merging this. Once my review comments have been addressed, I think this will be good to go.

src/platform/windows.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@chemicstry
Copy link
Contributor Author

Fixed as requested

@Uriopass
Copy link

Any update on this ? Using cpal with winit is a pain on windows at the moment. :-)

@ryanisaacg ryanisaacg requested a review from Osspial May 4, 2020 22:37
@chemicstry
Copy link
Contributor Author

Can this be re-reviewed?

Copy link
Contributor

@Osspial Osspial left a comment

Choose a reason for hiding this comment

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

This looks good. Sorry it took so long to re-review it.

@Osspial Osspial merged commit b1e22aa into rust-windowing:master Jun 28, 2020
maroider added a commit to maroider/winit that referenced this pull request Apr 24, 2021
maroider added a commit to maroider/winit that referenced this pull request May 3, 2021
francesca64 pushed a commit that referenced this pull request May 4, 2021
* Fix incorrect changelog entry for #1524

* Fix incorrect changelog entry for #1524
vihdzp added a commit to vihdzp/winit that referenced this pull request May 5, 2021
emilk pushed a commit to emilk/egui that referenced this pull request Mar 7, 2022
* Remove warning about cpal drag and drop

Given that the issue rust-windowing/winit#1255 was closed by rust-windowing/winit#1524, it would make sense to remove the warning about the issue from NativeOptions

* Change `NativeOptions::drag_and_drop_support` default to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants