CI / test (push) Canceled after 12m58s
Every screenshot now opens in an editor after KDE Spectacle's annotation mode: Arrow, Line, Rectangle, Ellipse, Pen, Highlighter, Text, Number markers, Blur, Pixelate, Redact and Crop, 8 colours, 3 sizes, undo/redo. Enter saves and copies, Ctrl+C copies only, Esc discards. - Drawn by the compositor (shot_editor.mbt), keyboard owned by it while up. - Annotations are drawn into the picture's pixels at full size (annotate.mbt), so what is shown is what is saved. Blur = 6x6 block average + 3 box-blur passes; redact is opaque; both touch only their box (pixel tests). - The picture goes to the renderer as <=2 MB strips: one 8 MB image-pixels call exhausts wasmtime's hostcall fuel and killed the wasm host. - Frame callbacks are held while the overlay/editor freeze the screen, so apps behind stop drawing (0% CPU vs 52% with a full-screen animating app). - wasmhost: error buffer 16 KB so trap causes aren't cut off; image-pixels limit 1024 -> 16384 a side (both hosts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hh3TaFJh7nhCxAjV4Q
35 lines
961 B
Plaintext
35 lines
961 B
Plaintext
import {
|
|
"moonbitlang/core/builtin",
|
|
"moonbitlang/core/encoding/utf8" @utf8,
|
|
"moonbitlang/core/math" @math,
|
|
"chandra/desktop/lib/wm" @wm,
|
|
"chandra/desktop/compositor/sys" @sys,
|
|
"chandra/desktop/compositor/scene" @scene,
|
|
"chandra/desktop/compositor/shell" @shell,
|
|
"chandra/desktop/compositor/wasm" @wasm,
|
|
"chandra/desktop/compositor/nested" @nested,
|
|
"chandra/desktop/compositor/font" @font,
|
|
"chandra/desktop/compositor/renderer" @renderer,
|
|
"chandra/desktop/compositor/raster" @raster,
|
|
"chandra/desktop/compositor/wayland" @wayland,
|
|
"chandra/desktop/compositor/gfx" @gfx,
|
|
"chandra/desktop/compositor/network" @network,
|
|
"chandra/desktop/compositor/portal" @portal,
|
|
"chandra/desktop/compositor/polkit" @polkit,
|
|
}
|
|
|
|
supported_targets = "+native+wasm"
|
|
|
|
import {
|
|
"moonbitlang/core/buffer" @buffer,
|
|
"moonbitlang/core/string" @string,
|
|
} for "test"
|
|
|
|
options(
|
|
link: {
|
|
"native": {
|
|
"cc-link-flags": "-lwasmer",
|
|
},
|
|
},
|
|
)
|