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

+7
View File
@@ -106,6 +106,7 @@ world plasmoid-host {
import game-library;
import osk;
import rotation;
import show-desktop;
export plasmoid;
}
@@ -187,6 +188,12 @@ world osk-widget {
import osk;
}
/// Show Desktop button: hides the windows, a second click brings them back.
world show-desktop-widget {
include widget;
import show-desktop;
}
/// Display rotation button ("Rot"): rotates 90° clockwise on click.
world rotate-widget {
include widget;