From f04bc94b80942857f8cc1e0d39658bd1eb633a06 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Thu, 27 May 2021 14:22:11 +0200 Subject: allow disabling drag and drop on windows --- winit/src/settings/windows.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'winit/src/settings') diff --git a/winit/src/settings/windows.rs b/winit/src/settings/windows.rs index 76b8d067..68dadefd 100644 --- a/winit/src/settings/windows.rs +++ b/winit/src/settings/windows.rs @@ -2,8 +2,19 @@ //! Platform specific settings for Windows. /// The platform specific window settings of an application. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct PlatformSpecific { /// Parent Window pub parent: Option, + /// Drap and Drop support + pub drag_and_drop: bool, +} + +impl Default for PlatformSpecific { + fn default() -> Self { + Self { + parent: None, + drag_and_drop: true, + } + } } -- cgit