Update to winit 0.28
This commit is contained in:
parent
cf434236e7
commit
a5fbfe7ea5
3 changed files with 16 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue