Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191//! A minimal single-app nested Wayland compositor for GUI testing.//!//! This library owns everything except process startup: argument parsing, the//! compositor state and its protocol handlers, the winit backend and render loop,//! and the hosted-child lifecycle. Keeping it all in the library (with the binary a//! thin shell over `run`) lets the display-independent pieces (argument parsing) be//! unit-tested without opening a window. See the module docs for each part.
/// What: `pub mod app;`. Declares the `app` module from `src/app.rs`./// Why: Holds `run`, the whole-program orchestration entry.////// In TS you'd write (pseudocode):/// ```ts/// export * as app from "./app";/// ```pub mod app;
/// Exposes private XDG Settings portal used for deterministic nested appearance.pub mod appearance_portal;
/// What: `pub mod backend;`. Declares the winit/EGL/dmabuf backend init module./// Why: Builds the nested window, GLES renderer, output, and dmabuf state.////// In TS you'd write (pseudocode):/// ```ts/// export * as backend from "./backend";/// ```pub mod backend;
/// What: `pub mod child;`. Declares the hosted-client lifecycle module./// Why: Spawns the app and stops the loop on its exit.////// In TS you'd write (pseudocode):/// ```ts/// export * as child from "./child";/// ```pub mod child;
/// What: `pub mod control;`. Declares the Unix-socket control API module./// Why: Parses control commands and runs them (screenshot, input, resize, quit).////// In TS you'd write (pseudocode):/// ```ts/// export * as control from "./control";/// ```pub mod control;
/// Runtime appearance switching reaches only the private Settings portal.pub mod control_color_scheme;
/// What: `pub mod dnd;`. Declares the compositor-originated drag-and-drop module./// Why: Drives a server-side `text/uri-list` drag toward the hosted app so the app's/// INBOUND file-drop path can be tested deterministically without a file manager.////// In TS you'd write (pseudocode):/// ```ts/// export * as dnd from "./dnd";/// ```pub mod dnd;
/// What: `pub mod encoder;`. Declares the frame-encoding + worker-pool module./// Why: Flips and encodes captured frames (PNG/BMP) on a parallel worker pool.////// In TS you'd write (pseudocode):/// ```ts/// export * as encoder from "./encoder";/// ```pub mod encoder;
/// What: `pub mod input;`. Declares the synthetic input-injection module./// Why: Turns click/key/type commands into seat events.////// In TS you'd write (pseudocode):/// ```ts/// export * as input from "./input";/// ```pub mod input;
/// True notched-wheel input reaches the hosted client's native Wayland path.pub mod input_wheel;
/// Hosted-client frame pacing must not depend on the parent window being presented.pub mod frame_pacing;
/// What: `pub mod keymap;`. Declares the US-layout keycode tables./// Why: Maps characters and key names to evdev keycodes; display-independent.////// In TS you'd write (pseudocode):/// ```ts/// export * as keymap from "./keymap";/// ```pub mod keymap;
/// What: `pub mod protocol;`. Declares the control-protocol parsing module./// Why: Parses request lines and formats response lines; display-independent.////// In TS you'd write (pseudocode):/// ```ts/// export * as protocol from "./protocol";/// ```pub mod protocol;
/// End-of-dispatch delivery must not depend on a visible rendering window.pub mod protocol_flush;
/// What: `pub mod screenshot;`. Declares the framebuffer-readback module./// Why: Renders a frame and encodes it as a PNG.////// In TS you'd write (pseudocode):/// ```ts/// export * as screenshot from "./screenshot";/// ```pub mod screenshot;
/// What: `pub mod cli;`. Declares the argument-parsing module./// Why: Turns raw arguments into a validated `Config`; display-independent and/// unit-tested.////// In TS you'd write (pseudocode):/// ```ts/// export * as cli from "./cli";/// ```pub mod cli;
/// What: `pub mod handler;`. Declares the Wayland protocol handler module tree./// Why: Implements the compositor/xdg-shell/shm/seat/dmabuf behaviour.////// In TS you'd write (pseudocode):/// ```ts/// export * as handler from "./handler";/// ```pub mod handler;
/// What: `pub mod render;`. Declares the rendering module./// Why: Composites the hosted window into the nested framebuffer each frame.////// In TS you'd write (pseudocode):/// ```ts/// export * as render from "./render";/// ```pub mod render;
/// What: `pub mod recorder;`. Declares the 60fps frame-recorder module./// Why: Drives the steady, app-decoupled capture timer that feeds the encoder pool.////// In TS you'd write (pseudocode):/// ```ts/// export * as recorder from "./recorder";/// ```pub mod recorder;
/// What: `pub mod state;`. Declares the central-state module./// Why: Defines `Compositor`, the value the event loop carries.////// In TS you'd write (pseudocode):/// ```ts/// export * as state from "./state";/// ```pub mod state;
/// What: `pub mod systemd;`. Declares the systemd CPU-isolation module./// Why: Launches the hosted app in a resource-controlled scope (or degrades cleanly).////// In TS you'd write (pseudocode):/// ```ts/// export * as systemd from "./systemd";/// ```pub mod systemd;
/// What: `pub use app::run;`. Re-export `run` at the crate root./// Why: The binary calls `nested_wayland_session::run` without knowing the module/// layout.////// In TS you'd write (pseudocode):/// ```ts/// export { run } from "./app";/// ```pub use app::run;
/// What: `pub use cli::{parse_args, Config};`. Re-export the parser and its output./// Why: The binary and tests use these directly from the crate root.////// In TS you'd write (pseudocode):/// ```ts/// export { parseArgs, Config } from "./cli";/// ```pub use cli::{parse_args, Config};
/// Exposes supported deterministic nested appearance values.pub use appearance_portal::ColorSchemePreference;