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>
This commit is contained in:
parent
d567f3957d
commit
f49b42836a
12 changed files with 398 additions and 84 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -2620,6 +2620,8 @@ dependencies = [
|
|||
"tauri-build",
|
||||
"tauri-plugin-dialog",
|
||||
"tempfile",
|
||||
"webview2-com",
|
||||
"windows 0.61.3",
|
||||
"xcap",
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue