Files
chandra/wit/wm/decoration.wit
VandClaude Opus 5.5 af774d76fe
CI / test (push) Failing after 16s
Rename the project to Chandra
moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra
everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the
MoonBit module (chandra/desktop) and generated bindings, the Rust host,
identifiers (ChandraCompositor), the session script (chandra-session) and
desktop entry (chandra.desktop), config and data paths
($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*),
UI strings, docs and tests. The test fixture components are rebuilt against
the renamed WIT.

Saved panel.edn and state.edn are still read from the old
$XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy.

The remote repository keeps its experiments/moon-plasma name for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
2026-11-25 17:12:57 +00:00

37 lines
686 B
Plaintext

package chandra:wm@0.2.0;
interface decoration {
use chandra:desktop/types@0.1.0.{rect, size, draw-op};
use policy.{window-state};
enum hit-role {
none,
titlebar,
close,
maximize,
minimize,
resize-n,
resize-s,
resize-e,
resize-w,
resize-nw,
resize-ne,
resize-sw,
resize-se,
}
record hit-region {
rect: rect,
role: hit-role,
}
record decoration-frame {
/// Insets reserved around the client surface: (top, right, bottom, left)
insets: tuple<u32, u32, u32, u32>,
ops: list<draw-op>,
hit-regions: list<hit-region>,
}
render: func(win: window-state, outer-size: size) -> decoration-frame;
}