summaryrefslogtreecommitdiffstats
path: root/winit/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'winit/src/window.rs')
-rw-r--r--winit/src/window.rs2
1 files changed, 1 insertions, 1 deletions
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.