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

+8
View File
@@ -86,6 +86,14 @@ interface layout-control {
set-layout: func(mode: u32);
}
/// Show the desktop (Super+D): hide every window of the active workspace, and bring them back.
interface show-desktop {
/// True while the windows are hidden and `toggle` would bring them back.
is-shown: func() -> bool;
/// Hide the windows to show the desktop, or (while it is shown) bring back the ones it hid.
toggle: func();
}
/// The Interface Explorer: hover any system component to see its WIT.
interface inspector {
is-on: func() -> bool;