Load the real desktop shell (lib/shell, panel, launcher, clock) into the native compositor
CI / test (push) Successful in 34s
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:
1 parent
3cb8417699
commit
769ab829c8
8 files changed
+285
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user