flaky fedora behavior

This commit is contained in:
FTCHD
2026-07-12 01:42:29 +03:00
parent 8af6f3d51f
commit 956f58c65b
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -84,10 +84,11 @@ export default function Startup() {
}, [startupStatus])
// Close window when it loses focus
// Wayland can report a transient focus loss while the window is being shown.
useEffect(() => {
const currentWindow = getCurrentWindow()
const unlisten = currentWindow.onFocusChanged(async ({ payload: focused }) => {
if (!focused) {
if (!focused && platform() !== 'linux') {
await currentWindow.hide()
await currentWindow.destroy()
}