From ac60dbd5ee69a03e74c1c8f7cc648cb76c8ccc50 Mon Sep 17 00:00:00 2001 From: Xinyu Yang Date: Tue, 28 Mar 2023 11:26:25 +0800 Subject: [PATCH] Change tray window position position Change tray window position from center to fixed center on left click event --- src-tauri/src/app/menu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs index c5b3645fa..99a16cb6c 100644 --- a/src-tauri/src/app/menu.rs +++ b/src-tauri/src/app/menu.rs @@ -464,7 +464,7 @@ pub fn tray_handler(handle: &AppHandle, event: SystemTrayEvent) { } if let Some(tray_win) = handle.get_window("tray") { - tray_win.move_window(Position::TrayCenter).unwrap(); + tray_win.move_window(Position::TrayFixedCenter).unwrap(); if tray_win.is_visible().unwrap() { tray_win.hide().unwrap();