summaryrefslogtreecommitdiffstats
path: root/winit/src
diff options
context:
space:
mode:
authorLibravatar Wyatt Herkamp <wherkamp@kingtux.me>2022-08-15 08:10:28 -0400
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-29 14:20:02 +0200
commit7ec474730478749530bbac7e7c90ecc8c64f4748 (patch)
tree932ed92130461756a63e38abf0dd8513f4daf50a /winit/src
parent94fc3d993e3eb5f4646b3e6559e7b25a9f227460 (diff)
downloadiced-7ec474730478749530bbac7e7c90ecc8c64f4748.tar.gz
iced-7ec474730478749530bbac7e7c90ecc8c64f4748.tar.bz2
iced-7ec474730478749530bbac7e7c90ecc8c64f4748.zip
Update `winit` and `glutin` forks
Diffstat (limited to 'winit/src')
-rw-r--r--winit/src/application.rs8
-rw-r--r--winit/src/settings.rs2
-rw-r--r--winit/src/settings/windows.rs2
3 files changed, 6 insertions, 6 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index a576126e..13efd971 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -116,12 +116,12 @@ where
{
use futures::task;
use futures::Future;
- use winit::event_loop::EventLoop;
+ use winit::event_loop::EventLoopBuilder;
let mut debug = Debug::new();
debug.startup_started();
- let event_loop = EventLoop::with_user_event();
+ let event_loop = EventLoopBuilder::with_user_event().build();
let proxy = event_loop.create_proxy();
let runtime = {
@@ -186,7 +186,7 @@ where
platform::run(event_loop, move |event, _, control_flow| {
use winit::event_loop::ControlFlow;
- if let ControlFlow::Exit = control_flow {
+ if let ControlFlow::ExitWithCode(_) = control_flow {
return;
}
@@ -713,7 +713,7 @@ mod platform {
{
use winit::platform::run_return::EventLoopExtRunReturn;
- event_loop.run_return(event_handler);
+ let _ = event_loop.run_return(event_handler);
Ok(())
}
diff --git a/winit/src/settings.rs b/winit/src/settings.rs
index a04ec863..6387454b 100644
--- a/winit/src/settings.rs
+++ b/winit/src/settings.rs
@@ -138,7 +138,7 @@ impl Window {
use ::winit::platform::unix::WindowBuilderExtUnix;
if let Some(id) = _id {
- window_builder = window_builder.with_app_id(id);
+ window_builder = window_builder.with_name(id.clone(), id);
}
}
diff --git a/winit/src/settings/windows.rs b/winit/src/settings/windows.rs
index fc26acd7..9bef1eaf 100644
--- a/winit/src/settings/windows.rs
+++ b/winit/src/settings/windows.rs
@@ -5,7 +5,7 @@
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct PlatformSpecific {
/// Parent window
- pub parent: Option<winapi::shared::windef::HWND>,
+ pub parent: Option<winit::platform::windows::HWND>,
/// Drag and drop support
pub drag_and_drop: bool,