Replace change_always_on_top action with change_level

This commit is contained in:
Héctor Ramón Jiménez 2023-05-25 23:18:50 +02:00
parent a7fa7e4005
commit f0788b9f37
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 17 additions and 28 deletions

View file

@ -26,7 +26,6 @@ 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,12 +794,8 @@ pub fn run_command<A, E>(
window::Action::GainFocus => {
window.focus_window();
}
window::Action::ChangeAlwaysOnTop(on_top) => {
let level = match on_top {
true => WindowLevel::AlwaysOnTop,
false => WindowLevel::Normal,
};
window.set_window_level(level);
window::Action::ChangeLevel(level) => {
window.set_window_level(conversion::window_level(level));
}
window::Action::FetchId(tag) => {
proxy