Use winit and glutin forks in iced-rs org
This commit is contained in:
parent
96a462d2f2
commit
612585109f
5 changed files with 25 additions and 10 deletions
|
|
@ -14,11 +14,15 @@ categories = ["gui"]
|
|||
debug = ["iced_native/debug"]
|
||||
|
||||
[dependencies]
|
||||
winit = "0.25"
|
||||
window_clipboard = "0.2"
|
||||
log = "0.4"
|
||||
thiserror = "1.0"
|
||||
|
||||
[dependencies.winit]
|
||||
version = "0.25"
|
||||
git = "https://github.com/iced-rs/winit"
|
||||
rev = "9c358959ed99736566d50a511b03d2fed3aac2ae"
|
||||
|
||||
[dependencies.iced_native]
|
||||
version = "0.4"
|
||||
path = "../native"
|
||||
|
|
|
|||
|
|
@ -310,9 +310,15 @@ async fn run_instance<A, E, C>(
|
|||
|
||||
window.request_redraw();
|
||||
}
|
||||
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(url))) => {
|
||||
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(
|
||||
event::MacOS::ReceivedUrl(url),
|
||||
)) => {
|
||||
use iced_native::event;
|
||||
events.push(iced_native::Event::PlatformSpecific(event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(url))));
|
||||
events.push(iced_native::Event::PlatformSpecific(
|
||||
event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(
|
||||
url,
|
||||
)),
|
||||
));
|
||||
}
|
||||
event::Event::UserEvent(message) => {
|
||||
messages.push(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue