Skip to content

1.0.0-alpha.3: window snapshots and the KWin script - #4

Merged
glani merged 2 commits into
mainfrom
feature/snapshots
Nov 8, 2026
Merged

glani merged 2 commits into
mainfrom
feature/snapshots

Conversation

@glani

@glani glani commented Nov 8, 2026

Copy link
Copy Markdown
Contributor
  • Window snapshots for SMBAct's switcher (GNOME): snapshots {ids, maxSize, background}, snapshot {id}, snapshot event (snapshots.js). The whole buffer the way GNOME's own window screenshot takes it, the frame rect cut out in proportion (no client-side shadow), JPEG over a background. Cached per window, retaken only when damaged or resized, one per idle turn, never on a timer; the window that just lost the focus is retaken quietly.
  • KWin script (kwin/smbact-kwin.js, Plasma 6): the same protocol and JSON as the extension. A KWin script cannot serve D-Bus calls, so SMBAct serves com.giglabo.SMBAct.KWin1 and the script calls in (Hello, Next(reply) -> request long-poll, Event): PROTOCOL.md "KWin transport". No snapshots, accelerator grabs or icon rendering there (documented). SMBAct loads it into KWin itself: no install, no new login.
  • Releases carry smbact-kwin.js next to the extension zip (pack.sh, release.yml with a VERSION check, SHA256SUMS); CI checks the syntax of snapshots.js and the KWin script.
  • metadata: version 3, version-name 1.0.0-alpha.3.

Checked with SMBAct in VMs: Ubuntu 26.04 GNOME Shell 50.1 (switcher previews of Wayland windows, a changed window retaken; hotkeys-check 8/8) and Ubuntu 26.04 KDE Plasma 6.6.6 (every window listed and moved, switcher, actions popup, script reloaded after an engine crash; kwin-backend-check 5/5).

🤖 Generated with Claude Code

glani and others added 2 commits November 8, 2026 16:06
…pshot, event)

snapshots.js: the whole buffer the way GNOME's window screenshot takes it, the frame
rect cut out in proportion (no client-side shadow), JPEG over a background. A
snapshot costs about a frame, so they are cached per window, retaken only when the
window was damaged or resized, one per idle turn, never on a timer; a request answers
with the cache at once and announces each retaken one; the window that just lost the
focus is retaken quietly. scripts/call.py --snapshots takes every window and prints
sizes and timings. Same API 1; the new ops are listed in hello.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… extension

A KWin script cannot serve D-Bus calls: SMBAct serves com.giglabo.SMBAct.KWin1 and the
script calls in (Hello, Next(reply) -> request long-poll, Event), PROTOCOL.md "KWin
transport". All window operations of API 1; no snapshots, accelerator grabs or icon
rendering (documented). Window ids: the first 32 bits of KWin's UUID. Releases carry
smbact-kwin.js next to the extension zip (pack.sh, release.yml with a VERSION check,
SHA256SUMS); CI checks its syntax and snapshots.js'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@glani
glani merged commit eff4c2d into main Nov 8, 2026
1 check passed
@glani
glani deleted the feature/snapshots branch November 8, 2026 16:10
@glani glani mentioned this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant