Load the real desktop shell (lib/shell, panel, launcher, clock) into the native compositor
CI / test (push) Successful in 34s

Replaces the hardcoded build_shell_ops with compositor/shell, which drives the
same pure lib/* logic the wasm components wrap and adapts it to scene ops.
Adds a wall-clock FFI and native stubs for the wasm-only theme bindings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-24 18:48:34 -08:00
1 parent 3cb8417699
commit 769ab829c8
8 files changed
+285 -1

No files matched your search

+3 -1
View File
@@ -22,6 +22,7 @@ pub(all) struct MoonPlasmaCompositor {
work_area : @wm.Rect
windows : Map[UInt64, HostWindow]
damage : @scene.DamageTracker
shell : @shell.DesktopShell
mut layout_mode : @wm.LayoutMode
}
@@ -53,6 +54,7 @@ pub fn MoonPlasmaCompositor::new(
work_area,
windows: {},
damage: @scene.DamageTracker::new(),
shell: @shell.DesktopShell::new(),
layout_mode: @wm.LayoutMode::Tiling,
})
}
@@ -260,7 +262,7 @@ pub fn MoonPlasmaCompositor::compose_frame(
@wm.LayoutMode::Floating => "Floating"
@wm.LayoutMode::Monocle => "Monocle"
}
let (bg_ops, panel_ops) = @scene.build_shell_ops(
let (bg_ops, panel_ops) = self.shell.render(
self.output_w,
self.output_h,
self.theme,
+1
View File
@@ -3,6 +3,7 @@ import {
"moonplasma/desktop/lib/wm" @wm,
"moonplasma/desktop/compositor/sys" @sys,
"moonplasma/desktop/compositor/scene" @scene,
"moonplasma/desktop/compositor/shell" @shell,
"moonplasma/desktop/compositor/renderer" @renderer,
"moonplasma/desktop/compositor/wayland" @wayland,
}