Nested window backend: run the compositor in a window on the host Wayland session
CI / test (push) Successful in 26s

The compositor opens an xdg_toplevel on $WAYLAND_DISPLAY, presents frames via
wl_shm with frame-callback pacing and forwards host pointer input to the gfx
surface. just run now uses it (release build); run-headless keeps the old mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-24 19:06:51 -08:00
1 parent a265eebf02
commit a1b85474f8
5 files changed
+455 -6

No files matched your search

+10 -4
View File
@@ -5,17 +5,23 @@ export PATH := env_var('HOME') + "/.moon/bin:" + env_var('PATH')
socket := env_var_or_default('XDG_RUNTIME_DIR', '/tmp') + "/wayland-moon-0"
theme := "config/themes/moon-night.json"
exe := "_build/native/debug/build/compositor/bin/bin.exe"
exe := "_build/native/release/build/compositor/bin/bin.exe"
debug_exe := "_build/native/debug/build/compositor/bin/bin.exe"
default:
@just --list
# Build the native compositor.
# Build the native compositor (release: the software rasteriser is slow in debug).
build:
moon build --target native --warn-list -a compositor/bin
moon build --target native --release --warn-list -a compositor/bin
# Run the compositor (Ctrl-C to stop). Connect clients via `just client`.
# Run the compositor in a window on your current Wayland session (close the window or Ctrl-C to stop). Connect clients via `just client`.
run: build
rm -f {{socket}}
{{exe}} --window --socket {{socket}} --theme {{theme}}
# Run the compositor with no window (clients only; no output).
run-headless: build
rm -f {{socket}}
{{exe}} --socket {{socket}} --theme {{theme}}