Panel: add a Show Desktop module at the panel's end

- Clicking it hides every window, as Super+D does; it stays lit while the desktop is shown.
- A second click brings the hidden windows back.
- New show-desktop capability (wit toggle and publish-desktop-shown) for the wasm module.
- Added to the default panel after session settings; existing panels are unchanged.
- Test covers hiding, the lit state, and restoring the windows.
This commit is contained in:
nandi committed 2026-11-30 12:24:01 -08:00
1 parent 51852f0dac
commit 44bb77871d
31 files changed
+869 -49

No files matched your search

+2
View File
@@ -1336,6 +1336,7 @@ fn ChandraCompositor::build_scene(
(if self.rec_pointer { 2 } else { 0 })
self.shell.osk_visible = self.osk_visible
self.shell.rotation = self.pending_rotation.unwrap_or(self.rotation)
self.shell.desktop_shown = self.desktop_shown()
// A window over the whole desktop (maximized, fullscreen, monocle) pauses a desktop module's
// animation: nobody can see it.
self.shell.set_desktop_covered(self.desktop_covered())
@@ -2025,6 +2026,7 @@ fn ChandraCompositor::run_shell_actions(self : ChandraCompositor) -> Unit {
}
@shell.ShellAction::SetOskVisible(v) => self.osk_set_manual_visible(v)
@shell.ShellAction::SetRotation(r) => self.request_rotation(r)
@shell.ShellAction::ToggleDesktop => self.toggle_show_desktop()
@shell.ShellAction::SetLayout(m) =>
match m {
0 => self.set_layout_mode(@wm.LayoutMode::Tiling)