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
@@ -301,7 +301,8 @@ pub async fn open_small_window(
#[cfg(target_os = "linux")]
{
builder = builder.transparent(true);
// Transparent WebKitGTK windows can fail to render with Wayland DMA-BUF backends.
builder = builder.transparent(false);
}
let window = builder.build().map_err(|e| e.to_string())?;
+3 -3
View File
@@ -14,15 +14,15 @@
"windows": [
{
"title": "Rclone UI",
"width": 0,
"height": 0,
"width": 1,
"height": 1,
"center": true,
"hiddenTitle": false,
"resizable": false,
"fullscreen": false,
"visible": false,
"decorations": false,
"focus": true,
"focus": false,
"url": "tray.html",
"alwaysOnTop": true,
"backgroundThrottling": "disabled",
+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()
}