2 parents b78b3dc + f4fdbc5 commit fe7e858Copy full SHA for fe7e858
1 file changed
src-tauri/src/lib.rs
@@ -52,7 +52,16 @@ pub fn run() {
52
use tauri::Manager;
53
if let Some(window) = app.get_webview_window("main") {
54
#[cfg(target_os = "macos")]
55
- crate::macos::set_move_to_active_space(&window);
+ {
56
+ crate::macos::set_move_to_active_space(&window);
57
+
58
+ // Fix for macOS frameless window walking down on restart
59
+ // tauri-plugin-window-state restores position with titlebar offset
60
+ if let Ok(mut pos) = window.outer_position() {
61
+ pos.y = pos.y.saturating_sub(28);
62
+ let _ = window.set_position(tauri::Position::Physical(pos));
63
+ }
64
65
66
let dialog_state = app.state::<crate::DialogState>();
67
let is_dialog_open = dialog_state.is_open.clone();
0 commit comments