Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

fix: resolve non-functional window buttons on Ubuntu 24.04/GNOME by adding delay before focus request

tw93155db1a858dc
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index fef638c1..9bff5c8d 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -115,6 +115,12 @@ pub fn run_app() {
window_clone.set_fullscreen(true).unwrap();
// Ensure webview maintains focus for input after fullscreen
let _ = window_clone.set_focus();
+ } else {
+ // Fix: Ubuntu 24.04/GNOME window buttons non-functional until resize (#1122)
+ // The window manager needs time to process the MapWindow event before
+ // accepting focus requests. Without this, decorations remain non-interactive.
+ tokio::time::sleep(tokio::time::Duration::from_millis(30)).await;
+ let _ = window_clone.set_focus();
}
}
});