fix: win11 drag lag

This commit is contained in:
GyDi
2022-05-09 14:41:26 +08:00
committed by GitHub
parent df0b5a80dc
commit 6596fb00c7
5 changed files with 79 additions and 1 deletions

View File

@@ -35,12 +35,18 @@ fn resolve_window(app: &App) {
#[cfg(target_os = "windows")]
{
use crate::utils::winhelp;
use window_shadows::set_shadow;
use window_vibrancy::apply_blur;
let _ = window.set_decorations(false);
let _ = set_shadow(&window, true);
let _ = apply_blur(&window, None);
// todo
// win11 disable this feature temporarily due to lag
if !winhelp::is_win11() {
let _ = apply_blur(&window, None);
}
}
#[cfg(target_os = "macos")]