mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Enable drag-and-drop events on windows (#3772)
# Objective - Fixes https://github.com/bevyengine/bevy/issues/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 https://github.com/RustAudio/cpal/pull/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.~~
This commit is contained in:
parent
5e70ad96c6
commit
39d89fe0df
1 changed files with 0 additions and 7 deletions
|
@ -22,13 +22,6 @@ impl WinitWindows {
|
|||
window_id: WindowId,
|
||||
window_descriptor: &WindowDescriptor,
|
||||
) -> Window {
|
||||
#[cfg(target_os = "windows")]
|
||||
let mut winit_window_builder = {
|
||||
use winit::platform::windows::WindowBuilderExtWindows;
|
||||
winit::window::WindowBuilder::new().with_drag_and_drop(false)
|
||||
};
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let mut winit_window_builder = winit::window::WindowBuilder::new();
|
||||
|
||||
winit_window_builder = match window_descriptor.mode {
|
||||
|
|
Loading…
Reference in a new issue