From e880c5b4c34f0d137535b80b5ecffe637b061feb Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 10 Jan 2024 12:04:58 +0100 Subject: [PATCH] Match on the embark-added `OpenURL` event --- crates/egui-winit/Cargo.toml | 2 +- crates/egui-winit/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/egui-winit/Cargo.toml b/crates/egui-winit/Cargo.toml index 178d99cdaf2c..ab1c4030dcf9 100644 --- a/crates/egui-winit/Cargo.toml +++ b/crates/egui-winit/Cargo.toml @@ -61,7 +61,7 @@ egui = { version = "0.24.1", path = "../egui", default-features = false, feature log = { version = "0.4", features = ["std"] } raw-window-handle.workspace = true web-time = { version = "0.2" } # We use web-time so we can (maybe) compile for web -winit = { version = "0.28", default-features = false } +winit = { git = "https://github.com/EmbarkStudios/winit", branch = "ark-staging" } #! ### Optional dependencies diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index f22dd81d2f42..b0b6b2e2418c 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -1496,6 +1496,7 @@ pub fn short_generic_event_description(event: &winit::event::Event<'_, T>) -> use winit::event::{DeviceEvent, Event, StartCause}; match event { + Event::OpenURL(_) => "Event::OpenURL", Event::Suspended => "Event::Suspended", Event::Resumed => "Event::Resumed", Event::MainEventsCleared => "Event::MainEventsCleared",