Repository navigation
1.0.0-alpha.3: window snapshots and the KWin script - #4
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
snapshots {ids, maxSize, background},snapshot {id},snapshotevent (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/smbact-kwin.js, Plasma 6): the same protocol and JSON as the extension. A KWin script cannot serve D-Bus calls, so SMBAct servescom.giglabo.SMBAct.KWin1and 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.smbact-kwin.jsnext to the extension zip (pack.sh, release.yml with a VERSION check, SHA256SUMS); CI checks the syntax of snapshots.js and the KWin script.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