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:
1 parent
51852f0dac
commit
44bb77871d
31 files changed
+869
-49
No files matched your search
@@ -96,6 +96,8 @@ interface plasmoids {
|
||||
publish-osk: func(visible: bool);
|
||||
/// Current display orientation (0 = 0°, 1 = 90° CW, 2 = 180°, 3 = 270° CW).
|
||||
publish-rotation: func(rot: u32);
|
||||
/// Whether show-desktop has the windows hidden (a toggle would bring them back).
|
||||
publish-desktop-shown: func(shown: bool);
|
||||
|
||||
record system-snapshot {
|
||||
cpu-permille: u32,
|
||||
@@ -189,6 +191,8 @@ interface plasmoids {
|
||||
set-osk-visible(bool),
|
||||
/// The rotation capability: set display orientation (0..3).
|
||||
set-rotation(s32),
|
||||
/// The show-desktop capability's `toggle`: hide the windows, or bring them back.
|
||||
toggle-desktop,
|
||||
}
|
||||
/// The next pending request, oldest first.
|
||||
next-request: func() -> option<request>;
|
||||
|
||||
Reference in new issue
Block a user