diff options
author | 2023-02-27 23:44:31 +0000 | |
---|---|---|
committer | 2023-05-11 17:00:08 +0100 | |
commit | a5fbfe7ea5e73218af1befe02eb364afad2d6c55 (patch) | |
tree | c6cda73366408f10f3633044888ff3dc817612bd /winit/src/application.rs | |
parent | cf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8 (diff) | |
download | iced-a5fbfe7ea5e73218af1befe02eb364afad2d6c55.tar.gz iced-a5fbfe7ea5e73218af1befe02eb364afad2d6c55.tar.bz2 iced-a5fbfe7ea5e73218af1befe02eb364afad2d6c55.zip |
Update to winit 0.28
Diffstat (limited to '')
-rw-r--r-- | winit/src/application.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 3d7c6e5d..1141ba27 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -26,6 +26,7 @@ use crate::{Clipboard, Error, Proxy, Settings}; use futures::channel::mpsc; use std::mem::ManuallyDrop; +use winit::window::WindowLevel; #[cfg(feature = "trace")] pub use profiler::Profiler; @@ -795,7 +796,11 @@ pub fn run_command<A, E>( window.focus_window(); } window::Action::ChangeAlwaysOnTop(on_top) => { - window.set_always_on_top(on_top); + let level = match on_top { + true => WindowLevel::AlwaysOnTop, + false => WindowLevel::Normal, + }; + window.set_window_level(level); } window::Action::FetchId(tag) => { proxy |