Slopos windowing

From SlopLabs/slopos · View interactive version

Slopos windowing is an AI agent skill from the GitHub repository SlopLabs/slopos. How a SlopOS program's window buffers reach the screen: the compositor's client protocol, double buffering, damage and frame pacing. Use when a task touches `slop-protocol/`, `windowing/`, `gfx/src/swap.rs`, `gfx/src/damage.rs`, `appkit/src/run.rs`, the compositor's `protocol.rs`, `renderer.rs` or f

How to use this skill

Skill file

Read first

Rules a change must keep

and the one before it until its BufferRelease. Begin frames only through

SoftSurface::frame or frame_over_shown; never fall back to the shown

buffer when none is free, wait for the release.

next serial; a release with another serial frees nothing. Do not count

releases or time one out as lost.

codec.rs, both ends, protocol_test's pinned tags and lengths, and

docs/abi/window-protocol together, and take the next PROTOCOL_VERSION.

must not pop a later message's fd from the queue.

bounded wait, since a hidden surface gets none. Do not remove the bound or

the wait.

read (multishot fires only on a readiness change and misses a commit), and

flushes that client's events right after.

surfaces whose frame was presented.

only after the last frame had a frame's time on screen.

nothing outside its bounds when lit (lit_damage), and a key or wheel turn

no widget took makes the next frame whole.

fd number.

Checks

Not yet in the docs

Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.