Desktop: Update winit to include window dragging fix for Windows (#4550)

This commit is contained in:
Timon
2026-09-20 01:27:37 +00:00
committed by GitHub
parent 2ed5e775e5
commit aee07b052a
3 changed files with 28 additions and 26 deletions
+1
View File
@@ -44,6 +44,7 @@ rfd = { workspace = true }
open = { workspace = true }
lzma-rust2 = { workspace = true }
serde = { workspace = true }
url = { workspace = true }
rand = { workspace = true, features = ["thread_rng"] }
clap = { workspace = true, features = ["derive"] }
interprocess = "2.4.2"
+3 -2
View File
@@ -656,9 +656,10 @@ impl ApplicationHandler for App {
self.app_event_scheduler.schedule(AppEvent::DesktopWrapperMessage(message));
}
},
WindowEvent::DataTransferReceived { serial, ref value, .. } if self.pending_dnd_fetch == Some(serial) => match value.try_as_file_paths() {
Ok(paths) => {
WindowEvent::DataTransferReceived { serial, ref value, .. } if self.pending_dnd_fetch == Some(serial) => match value.try_as_uris() {
Ok(uris) => {
self.pending_dnd_fetch = None;
let paths = uris.iter().filter_map(|uri| url::Url::parse(uri).ok()?.to_file_path().ok());
for path in paths {
match fs::read(&path) {
Ok(content) => {