Commit Graph
2 Commits
Author SHA1 Message Date
alex d3d2cae0e7 run --enhance: a failing engine leaves the game running; a 0 width/height is never sent as a monitor mode
If the engine exits with an error (no window found, the Wayland share dialog cancelled, a capture tool
missing), the game now goes on without Enhance and summit run says so; a normal engine exit still stops both.
Checked on Plasma 6.8 with --window class:nothing. Found there too: --width 0 --height 0 made summit run
'kscreen-doctor output.HDMI-A-1.mode.0x0@60' (kscreen-doctor refused it; the monitor stayed as it was);
zeros now mean not set. The stand-in test window can go fullscreen on a named monitor.
2026-11-24 17:03:11 +00:00
alex dc5421bf0d engine: capture native Wayland windows through the ScreenCast portal and PipeWire
On a Wayland session, --window finds the game among XWayland windows (captured as on X11) and, on KDE, among
KWin's native windows (a one-shot KWin script reports pid, title, place and focus over D-Bus). A native window
goes through xdg-desktop-portal ScreenCast (one window, pointer hidden, persist_mode 2; the restore token is kept
in ~/.config/summit/screencast-token) and gst-launch-1.0 pipewiresrc piping raw BGR (CPU copy). Run on Plasma 6.8:
the dialog once, then restored for a new window of the same app with no dialog; about 50 new frames a second
at 1288x748. devtools/wayland_standin.py is a native Wayland test window that logs its keys and focus.
2026-11-24 16:54:11 +00:00