From a19c3e13347a152e6e3c18a33abd922c33d38418 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 4 Apr 2022 20:09:54 +0000 Subject: [PATCH] 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.~~ --- crates/bevy_winit/src/winit_windows.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/bevy_winit/src/winit_windows.rs b/crates/bevy_winit/src/winit_windows.rs index 1c1c0f30df887..65354e80882f8 100644 --- a/crates/bevy_winit/src/winit_windows.rs +++ b/crates/bevy_winit/src/winit_windows.rs @@ -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 {