From d7c616e7ad1b9a176aab0d3534ac9ae0c03c9c7d Mon Sep 17 00:00:00 2001 From: pettijohn <632844+pettijohn@users.noreply.github.com> Date: Thu, 4 Jun 2026 03:00:25 +0000 Subject: [PATCH 1/2] fix: window chrome unresponsive on Linux --- src-tauri/src/lib.rs | 3 +++ src-tauri/tauri.conf.json | 3 --- src-tauri/tauri.linux.conf.json | 9 +++++++++ src-tauri/tauri.macos.conf.json | 11 +++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 src-tauri/tauri.linux.conf.json create mode 100644 src-tauri/tauri.macos.conf.json diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 04f54a80..4e9615e3 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3661,6 +3661,7 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool { } } if let Some(main_window) = app.get_webview_window("main") { + #[cfg(not(target_os = "linux"))] let _ = main_window.show(); let _ = main_window.set_focus(); } @@ -3670,6 +3671,7 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool { // If no files were opened, show and focus the main window if !opened_file { if let Some(main_window) = app.get_webview_window("main") { + #[cfg(not(target_os = "linux"))] let _ = main_window.show(); let _ = main_window.set_focus(); } @@ -3786,6 +3788,7 @@ pub fn run() { // - No standalone preview was opened (normal launch), OR // - No notes folder is configured yet (new user needs FolderPicker // for onboarding, even if a preview is also showing). + #[cfg(not(target_os = "linux"))] let _ = main_window.show(); } } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b4e2ab1b..95c44cb0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -19,9 +19,6 @@ "minHeight": 400, "resizable": true, "decorations": true, - "titleBarStyle": "Overlay", - "hiddenTitle": true, - "trafficLightPosition": { "x": 16, "y": 24 }, "visible": false } ], diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json new file mode 100644 index 00000000..99e05285 --- /dev/null +++ b/src-tauri/tauri.linux.conf.json @@ -0,0 +1,9 @@ +{ + "app": { + "windows": [ + { + "visible": true + } + ] + } +} diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json new file mode 100644 index 00000000..c2dcd27a --- /dev/null +++ b/src-tauri/tauri.macos.conf.json @@ -0,0 +1,11 @@ +{ + "app": { + "windows": [ + { + "titleBarStyle": "Overlay", + "hiddenTitle": true, + "trafficLightPosition": { "x": 16, "y": 24 } + } + ] + } +} From a9e3b8da9368280c1b41ded4c6764511180aa627 Mon Sep 17 00:00:00 2001 From: pettijohn <632844+pettijohn@users.noreply.github.com> Date: Thu, 4 Jun 2026 15:46:00 +0000 Subject: [PATCH 2/2] fix: Linux window startup chrome and preserve platform config overrides --- src-tauri/src/lib.rs | 4 ++-- src-tauri/tauri.linux.conf.json | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 4e9615e3..d37b6039 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3660,8 +3660,8 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool { eprintln!("Failed to initialize notes folder {:?}: {}", canonical, e); } } + #[cfg(not(target_os = "linux"))] if let Some(main_window) = app.get_webview_window("main") { - #[cfg(not(target_os = "linux"))] let _ = main_window.show(); let _ = main_window.set_focus(); } @@ -3670,8 +3670,8 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool { // If no files were opened, show and focus the main window if !opened_file { + #[cfg(not(target_os = "linux"))] if let Some(main_window) = app.get_webview_window("main") { - #[cfg(not(target_os = "linux"))] let _ = main_window.show(); let _ = main_window.set_focus(); } diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index 99e05285..f6509440 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -2,6 +2,13 @@ "app": { "windows": [ { + "title": "Scratch", + "width": 1080, + "height": 720, + "minWidth": 600, + "minHeight": 400, + "resizable": true, + "decorations": true, "visible": true } ]