summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2021-06-14 17:21:55 -0300
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-06-25 14:15:11 +0200
commit612585109ffc9a14a507c3c8423c6aa790c35cbf (patch)
treeacf6d59469d89e46020cb7a27ce217294ed47e9e /winit
parent96a462d2f2cb608ad14c93cc55896108a2dccb2b (diff)
downloadiced-612585109ffc9a14a507c3c8423c6aa790c35cbf.tar.gz
iced-612585109ffc9a14a507c3c8423c6aa790c35cbf.tar.bz2
iced-612585109ffc9a14a507c3c8423c6aa790c35cbf.zip
Use `winit` and `glutin` forks in `iced-rs` org
Diffstat (limited to 'winit')
-rw-r--r--winit/Cargo.toml6
-rw-r--r--winit/src/application.rs10
2 files changed, 13 insertions, 3 deletions
diff --git a/winit/Cargo.toml b/winit/Cargo.toml
index 4bb46029..b926a9c5 100644
--- a/winit/Cargo.toml
+++ b/winit/Cargo.toml
@@ -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"
diff --git a/winit/src/application.rs b/winit/src/application.rs
index ce57bd1d..49f2f513 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -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);