agent report: wayland-capture
This commit is contained in:
1 parent
97b423e74d
commit
bcc03bd311
1 file changed
+44
@@ -0,0 +1,44 @@
|
||||
# wayland-capture (agent report)
|
||||
|
||||
Full report with every check: [docs/WAYLAND_REPORT.md](../WAYLAND_REPORT.md) (first line `WAYLAND: PASS`).
|
||||
|
||||
**What changed**
|
||||
- `engine/framegen/window_portal.py` (new): Wayland window capture. It finds the game among XWayland windows (read as on X11) and KWin's native windows. Native ones go through the ScreenCast portal (one window, pointer hidden, persist_mode 2, restore token in `~/.config/summit/screencast-token`), and `gst-launch-1.0 pipewiresrc` pipes the frames as raw BGR (a CPU copy).
|
||||
- `engine/framegen/kwin.py` (new): KWin's window list (pid, title, frame geometry, focus, XWayland or not) from a one-shot KWin script that reports back over D-Bus.
|
||||
- `engine/framegen/io.py`: the overlay uses GLFW's X11 platform on a Wayland session (an override-redirect XWayland window). Fixed `--monitor` with the fullscreen overlay: it used to cover every monitor.
|
||||
- `engine/framegen/window_x11.py`: allowed on Wayland when XWayland is there.
|
||||
- `engine/framegen/globalkeys.py`: GlobalShortcuts registers app id `summit` through `host.portal.Registry` first. Falls back to an XWayland key grab.
|
||||
- `engine/run.py`: Wayland sessions use window_portal.
|
||||
- `engine/devtools/wayland_standin.py`: a native Wayland test window that logs its keys and focus.
|
||||
- `engine/requirements.txt`: jeepney is now required.
|
||||
- `crates/summit-core/src/display.rs`: KDE plan is one `kscreen-doctor` call, picks the mode by id, adds no `enable` for an output that is on, and treats 0 sizes as not set.
|
||||
- `crates/summit-core/src/engine.rs` + CLI: an engine that fails leaves the game running.
|
||||
- `crates/summit-core/src/doctor.rs`: Wayland checks.
|
||||
- `crates/summit-core/src/hotkey.rs`: the status text.
|
||||
- `crates/summit-gui/src/main.rs`: Enhance is allowed on Wayland.
|
||||
- `install.sh`: GStreamer + PipeWire plugin on Wayland.
|
||||
- README status rows; `docs/media/wayland/`.
|
||||
|
||||
**How it was verified**
|
||||
- Everything ran on the owner's desktop (Plasma 6.8.2 Wayland, RTX 5080) from `~/summit-test`.
|
||||
- Voidrunner (XWayland only) ran with Enhance from `summit run` and from the launcher's Play.
|
||||
- Overlay + watermark seen in screenshots; keys reached the game (xdotool, guarded by the active window; KDE asked the owner once to allow it).
|
||||
- Ctrl+Alt+R through the portal saved clips; ffprobe/ffmpeg read them.
|
||||
- Clean stop; HDMI-A-1's mode switched and was restored by id four times.
|
||||
- Native path: a stand-in window, the share dialog (the owner clicked it within 9 s), then restored with no dialog.
|
||||
- Fullscreen games under the overlay, the fallback when the engine fails, `summit doctor`, `install.sh --dry-run`, a gamescope trial.
|
||||
- `cargo test --workspace` and the engine pytest (on the desktop's venv) passed before every commit.
|
||||
|
||||
**Not done / not verified**
|
||||
- A real native Wayland game.
|
||||
- GNOME/sway/Hyprland.
|
||||
- Fractional scaling.
|
||||
- A real keyboard.
|
||||
- A restore token after a reboot or for another program.
|
||||
- DMA-BUF zero copy.
|
||||
- 90/120/240 Hz output, HDR, VRR.
|
||||
- `install.sh` run for real on the desktop.
|
||||
- Gamescope as a Summit option (evaluated only).
|
||||
- One focus change in one native run is not understood.
|
||||
|
||||
**Left on the desktop**: `~/summit-test` (8.9 GB). KDE's permission for X11 input injection (the owner granted it). The desktop file, the shortcut component and the ScreenCast permission that the tests created were removed. Nothing was pushed.
|
||||
Reference in new issue
Block a user