Skip to content

Commit

Permalink
Enable drag-and-drop events on windows (bevyengine#3772)
Browse files Browse the repository at this point in the history
# 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.~~
  • Loading branch information
Veykril authored and aevyrie committed Jun 7, 2022
1 parent 42859ab commit a19c3e1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/bevy_winit/src/winit_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a19c3e1

Please sign in to comment.