You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the macOS platform, when using window-state, the app still flickers on every startup due to restoring the previous window position. (This does not occur in the development environment, but happens after packaging and installing the app.) The flickering is especially noticeable in a multi-monitor setup.
yyyyyy.mov
Reproduction
Just create an empty project using pnpm create tauri-app, then install and integrate tauri-plugin-window-state.
tauri.conf.json:
"windows": [
{
"title": "tauri-app",
"width": 800,
"height": 600,
"visible": false// aleady had set false
}
],
lib.rs:
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/#[tauri::command]fngreet(name:&str) -> String{format!("Hello, {}! You've been greeted from Rust!", name)}#[cfg_attr(mobile, tauri::mobile_entry_point)]pubfnrun(){
tauri::Builder::default().plugin(tauri_plugin_window_state::Builder::default().build()).plugin(tauri_plugin_opener::init()).invoke_handler(tauri::generate_handler![greet]).run(tauri::generate_context!()).expect("error while running tauri application");}
Expected behavior
If the window is shown only after the window state has been applied and taken effect, the flickering does not occur.
Describe the bug
On the macOS platform, when using window-state, the app still flickers on every startup due to restoring the previous window position. (This does not occur in the development environment, but happens after packaging and installing the app.) The flickering is especially noticeable in a multi-monitor setup.
yyyyyy.mov
Reproduction
Just create an empty project using
pnpm create tauri-app, then install and integratetauri-plugin-window-state.tauri.conf.json:lib.rs:Expected behavior
If the window is shown only after the window state has been applied and taken effect, the flickering does not occur.
Full
tauri infooutputStack trace
Additional context
No response