Commit Graph
18 Commits
Author SHA1 Message Date
alex 1214c9c182 Wayland: an XWayland game is no longer taken for a native one (KWin 6.8 has no windowId); a new user's engine gets the replay the Settings page shows (found by the first real launcher run on the owner's desktop) 2026-11-24 17:22:51 +00:00
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
alex b50f87b13c engine: GlobalShortcuts portal registers the host app id first; XWayland key grab as fallback
Plasma 6.8's portal refuses a host program without an app id ('An app id is required'); Register('summit')
works once summit.desktop is installed. Without the portal, the X11 grab through XWayland fires while an
XWayland window has the keyboard.
2026-11-24 16:47:19 +00:00
alex cefd190a2f engine: enhance XWayland windows on a Wayland session; overlay through XWayland
Checked on KDE Plasma 6.8 Wayland (RTX 5080): x11grab reads an XWayland game's window, and an override-redirect
XWayland window stays above it without taking the keyboard. GLFW is told to use X11 for the overlay (it picks
Wayland otherwise). Also fixes --monitor with the fullscreen overlay: GLFW monitor pointers were compared by
identity, never matched, and the overlay covered the whole X screen (all monitors).
2026-11-24 16:47:19 +00:00
alex 011da55e78 Untrack Python bytecode, ignore __pycache__ 2026-11-24 16:21:48 +00:00
alex aecaa585c1 engine: the messages a Linux user sees (no CUDA, HDR, the frame-spacing toasts) say Summit, not SmoovPlay 2026-11-24 16:01:23 +00:00
alex fc838b95e9 run: a signal to summit stops the game and the engine and puts the display mode back; clips go to Videos/Summit/<game>
- summit-core::signals catches SIGTERM, SIGINT and SIGHUP (only an atomic store in the handler). supervise() and the
  new wait_or_stop() poll it, stop the engine and the game, and summit run leaves through its normal path, so the
  display mode is restored. Exits 128+signal. A try_wait error in supervise() now stops both before returning.
- Output in the Run arm can no longer panic on a closed terminal (after SIGHUP).
- summit run --title (the launcher passes the library title) is given to the engine as SUMMIT_GAME; clips are saved
  in Videos/Summit/<game>/ named '<game> <date>.mp4'. The toast shows the path with this system's separator, and
  before & after videos say 'Summit' instead of 'SmoovPlay'.

Checked: kill -TERM / -HUP / -INT to summit alone stopped a game script and its child (exit 143/129/130); with
--enhance and a stand-in engine, both stopped and the engine saw SUMMIT_GAME. Display restore after a signal was not
run (no X display here).
2026-11-24 15:51:20 +00:00
alex 2d2a81167b engine: Ctrl+Alt+R saves the configured clip length, not the whole buffer (found in the release-candidate run) 2026-11-24 08:33:14 +00:00
alex 4b6db92b7c README: play-integration status from the VM run; launcher captures in docs/media/live
Plain and enhanced Play from the launcher, the display mode switch and restore, the clip settings and the
global save key were run on the KDE neon X11 test VM. Steam, Lutris, Wayland (display tools and the
GlobalShortcuts portal) remain untested and say so. Drops the unused SUMMIT_DETAIL_BTN hook.
2026-11-24 07:41:27 +00:00
alex 9231102a3e engine: global save-clip key on Linux (X11 XGrabKey via ctypes; Wayland GlobalShortcuts portal, untested)
Instant replay's Ctrl+Alt+R / Ctrl+Alt+B now work from any window on X11, so they reach the engine while
the game keeps the keyboard. On Wayland the portal is used through jeepney when it is installed; that path is
untested. Without either the engine prints why there is no global key.
2026-11-24 07:31:06 +00:00
alex a3599475ba Engine tests: X11 window capture (fake X + fake ffmpeg) and the watermark 2026-11-24 06:43:14 +00:00
alex d82af61da8 Engine: X11 overlay window over the captured game, watermark in the video window, --window-wait, --watermark, clean exit on SIGTERM 2026-11-24 06:42:18 +00:00
alex fe97c202c3 Engine: watermark setting (default on) and its drawing 2026-11-24 06:42:18 +00:00
alex c5bd0ac25e Engine: Linux (X11) window capture source: Composite redirect + ffmpeg x11grab, pick by title/class/pid/xid 2026-11-24 06:42:18 +00:00
alex c7ffbdb7e9 Engine: skip CUDA-GL interop on software OpenGL (it poisons CUDA); live Voidrunner comparison captures 2026-11-24 06:29:28 +00:00
alex d9f7768f19 Clip length picker (15s-10m), list layout + themes, real Voidrunner artwork, real window screenshots 2026-11-24 06:08:31 +00:00
alex aa1ffc41dd Frame-gen engine (SmoovPlay-derived), summit enhance, profile target_hz/model, NOTICE 2026-11-24 05:46:40 +00:00