diff options
-rw-r--r-- | glutin/src/multi_window.rs | 2 | ||||
-rw-r--r-- | native/src/window/action.rs | 4 | ||||
-rw-r--r-- | winit/src/multi_window.rs | 2 | ||||
-rw-r--r-- | winit/src/window.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/glutin/src/multi_window.rs b/glutin/src/multi_window.rs index 33fe60ff..da450dee 100644 --- a/glutin/src/multi_window.rs +++ b/glutin/src/multi_window.rs @@ -901,7 +901,7 @@ pub fn run_command<A, E>( y, }); } - window::Action::SetMode(mode) => { + window::Action::ChangeMode(mode) => { let window = windows.get(&id).expect("No window found"); window.set_visible(conversion::visible(mode)); window.set_fullscreen(conversion::fullscreen( diff --git a/native/src/window/action.rs b/native/src/window/action.rs index 63858bc8..e345cdfc 100644 --- a/native/src/window/action.rs +++ b/native/src/window/action.rs @@ -1,4 +1,4 @@ -use crate::window::{Mode, UserAttention}; +use crate::window::{Mode, UserAttention, Settings}; use iced_futures::MaybeSend; use std::fmt; @@ -16,7 +16,7 @@ pub enum Action<T> { /// Spawns a new window with the provided [`window::Settings`]. Spawn { /// The settings of the [`Window`]. - settings: window::Settings, + settings: Settings, }, /// Resize the window. Resize { diff --git a/winit/src/multi_window.rs b/winit/src/multi_window.rs index bd7e9d44..f846e124 100644 --- a/winit/src/multi_window.rs +++ b/winit/src/multi_window.rs @@ -957,7 +957,7 @@ pub fn run_command<A, E>( y, }); } - window::Action::SetMode(mode) => { + window::Action::ChangeMode(mode) => { let window = windows.get(&id).expect("No window found"); window.set_visible(conversion::visible(mode)); window.set_fullscreen(conversion::fullscreen( diff --git a/winit/src/window.rs b/winit/src/window.rs index fa31dca1..97d80c38 100644 --- a/winit/src/window.rs +++ b/winit/src/window.rs @@ -60,7 +60,7 @@ pub fn move_to<Message>(id: window::Id, x: i32, y: i32) -> Command<Message> { /// Changes the [`Mode`] of the window. pub fn change_mode<Message>(id: window::Id, mode: Mode) -> Command<Message> { - Command::single(command::Action::Window(id, window::Action::SetMode(mode))) + Command::single(command::Action::Window(id, window::Action::ChangeMode(mode))) } /// Fetches the current [`Mode`] of the window. |