Lutra/apps/lutra-desktop/Cargo.toml
danny f49b42836a F2: ui.screenshot captures the webview without focusing the window
On Windows the webview renders itself into a PNG through WebView2
CapturePreview (scheduled on the main thread via with_webview, 10 s
timeout, PNG signature and 64 MiB cap checked). macOS and Linux keep the
xcap screen-region capture as a documented fallback, now without focusing.
app.focus is the only control method that changes focus. A --control
instance opens its window without taking the foreground. An ignored live
test samples the foreground window while the app starts and takes five
screenshots and fails if Lutra ever owns it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 17:13:38 +01:00

42 lines
1,004 B
TOML

[package]
name = "lutra-desktop"
description = "The Lutra desktop app: Tauri shell around the engine"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
publish.workspace = true
[package.metadata.lutra]
layer = 6
[features]
bundled-ui = ["tauri/custom-protocol"]
[dependencies]
lutra-control.workspace = true
lutra-engine.workspace = true
serde_json = "1.0.154"
tauri = { version = "2.11.6", features = [] }
tauri-plugin-dialog = "2.7.3"
[target.'cfg(windows)'.dependencies]
webview2-com = "0.38.2"
windows = { version = "0.61.3", features = ["Win32_System_Com", "Win32_UI_Shell"] }
[target.'cfg(not(windows))'.dependencies]
xcap = "0.9.8"
[dev-dependencies]
tempfile.workspace = true
[target.'cfg(windows)'.dev-dependencies]
windows = { version = "0.61.3", features = ["Win32_UI_WindowsAndMessaging"] }
[build-dependencies]
png = "0.18.1"
tauri-build = { version = "2.6.3", features = [] }
[lints]
workspace = true