Files
chandra/compositor/app/moon.pkg
T
Claude e6be3825d0
CI / test (push) Successful in 2m28s
X11 backend: run Chandra on Xorg (NVIDIA's proprietary driver)
--x11 shows the desktop on the X server in $DISPLAY: a resizable window
under a window manager (--fullscreen asks it for fullscreen), or the whole
screen when no window manager runs, following xrandr resizes.

compositor/x11 is a pure X11 wire-protocol client (no libX11/xcb), so it
runs in the wasm compositor on both hosts and in the native build. Frames
go through MIT-SHM 1.2 (ShmAttachFd of the host frame memfd, paced by
ShmCompletion), with a core PutImage fallback. The keymap given to clients
is the X server's own (xkbcomp -xkb $DISPLAY -); X auto-repeat is dropped,
modifier/lock state comes from X's modifier map; MIT-MAGIC-COOKIE-1 auth.

chandra-session --x11 (and the new "Chandra (X11)" xsessions entry) runs
it as the login session; --login-session gives an X11 session what --drm
implied (power actions, polkit agent, system theme). just run-x11.
Docs: docs/x11.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hhLFs4VtHV26G1iyeo
2026-11-26 01:37:49 +00:00

15 lines
474 B
Plaintext

import {
"moonbitlang/core/builtin",
"chandra/desktop/compositor/sys" @sys,
"chandra/desktop/compositor/scene" @scene,
"chandra/desktop/compositor/renderer" @renderer,
"chandra/desktop/compositor/gfx" @gfx,
"chandra/desktop/compositor/host" @host,
"chandra/desktop/compositor/nested" @nested,
"chandra/desktop/compositor/x11" @x11,
"chandra/desktop/compositor/kms" @kms,
"chandra/desktop/compositor/raster" @raster,
}
supported_targets = "+native+wasm"