--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
This commit is contained in:
14 files changed
+1777
-19
No files matched your search
@@ -50,8 +50,10 @@ about 4 seconds (the Rust host takes about 2 minutes). The **Rust host**
|
||||
fallback until it is removed; any host change goes into both. A **native build** of the same
|
||||
compositor code (no wasm, `just run-native`) is used by the test suite.
|
||||
|
||||
The compositor runs either **nested**, as a window on your current Wayland session, or as a
|
||||
**login session** on DRM/KMS with libinput (`--drm`, through libseat/logind).
|
||||
The compositor runs **nested**, as a window on your current Wayland session, as a **login
|
||||
session** on DRM/KMS with libinput (`--drm`, through libseat/logind), or **on an X server**
|
||||
(`--x11`: a window under an X window manager, or the whole screen without one), for NVIDIA's
|
||||
proprietary driver on Xorg ([docs/x11.md](docs/x11.md)).
|
||||
|
||||
## Quickstart
|
||||
|
||||
@@ -74,7 +76,8 @@ just client # start foot inside it (or: just client konsol
|
||||
|---|---|
|
||||
| `just run` | Nested in a window on your Wayland session, MoonBit host |
|
||||
| `just run-drm` | As a login session on the real screen (from a text console, as yourself) |
|
||||
| `just install` | Install the "Chandra" display-manager session (asks for root once) |
|
||||
| `just run-x11` | On the X server in `$DISPLAY` (NVIDIA on Xorg; the whole screen when no window manager runs) |
|
||||
| `just install` | Install the "Chandra" display-manager session, and "Chandra (X11)" for Xorg (asks for root once) |
|
||||
| `just install-dev` | Same, but symlinked into this checkout: later just rebuild |
|
||||
| `just reload` | Reload the running session's panel modules from disk (`chandra-ctl reload [NAME]`) |
|
||||
| `just run-rust`, `run-drm-rust`, `install-rust` | The same with the Rust host |
|
||||
@@ -85,7 +88,8 @@ just client # start foot inside it (or: just client konsol
|
||||
| `just remote-build` | Build on a sprites.dev sprite (`CHANDRA_SPRITE`) and pull the artifacts back |
|
||||
|
||||
`build/wasmhost build/compositor.wasm --socket PATH` takes `--window` (nested), `--drm` (login
|
||||
session), `--theme PATH`, `--no-restore`, `--profile`, `--size WxH` and `--gfx-out frame.png`
|
||||
session), `--x11` (on Xorg; `--fullscreen` under a window manager, `--login-session` to act as the
|
||||
desktop session), `--theme PATH`, `--no-restore`, `--profile`, `--size WxH` and `--gfx-out frame.png`
|
||||
(render to a PNG, headless; add `--serve` to keep refreshing it). `WASMHOST_PROFILE=1` prints the
|
||||
time spent in each host function every 5 seconds; `WASMHOST_TRACE=1` logs every host call.
|
||||
`CHANDRA_DEBUG_CONFIGURE=1` (any host) logs each window's configures, acks and committed buffer
|
||||
|
||||
Reference in new issue
Block a user