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

Drag and drop event doesn't occur on windows 10 #4412

Closed
Sheepyhead opened this issue Apr 4, 2022 · 3 comments
Closed

Drag and drop event doesn't occur on windows 10 #4412

Sheepyhead opened this issue Apr 4, 2022 · 3 comments
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-Windows Specific to the Windows desktop operating system

Comments

@Sheepyhead
Copy link
Contributor

Bevy version

Main, revision 28d0a40

Operating system & version

Windows 10

What you did

Ran drag_and_drop example

What you expected to happen

The example is supposed to simply print the drag and drop event it has received

What actually happened

Nothing. The drag and drop event seems to be broken on windows

Additional information

This may be working on other platforms, it would be nice if someone could test linux and mac

@Sheepyhead Sheepyhead added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Apr 4, 2022
@bjorn3
Copy link
Contributor

bjorn3 commented Apr 4, 2022

As I understand it the issue is that the audio plugin enables multi threaded COM (probably to allow any thread to start sound and not just the main thread), while OLE drag and drop (which winit uses) mandates single threaded COM.

See #2096 (comment) and rust-windowing/winit#1255

@bjorn3 bjorn3 added A-Windowing Platform-agnostic interface layer to run your app in O-Windows Specific to the Windows desktop operating system and removed S-Needs-Triage This issue needs to be labelled labels Apr 4, 2022
@Sheepyhead
Copy link
Contributor Author

You're correct, this is the same issue. PR #3772 fixes this

@xiaohulu
Copy link

xiaohulu commented Aug 5, 2022

drag_and_drop example does not work on windows 11. When I drop a file to the bevy window, the console print nothing.

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 O-Windows Specific to the Windows desktop operating system
Projects
None yet
Development

No branches or pull requests

3 participants