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
@@ -272,6 +272,7 @@ fn request_val(r : @wasm.HostRequest) -> @wt.Val {
|
||||
)
|
||||
SetOskVisible(b) => Variant("set-osk-visible", Some(Bool(b)))
|
||||
SetRotation(n) => Variant("set-rotation", Some(S32(n)))
|
||||
ToggleDesktop => Variant("toggle-desktop", None)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -504,6 +505,13 @@ fn plasmoid_funcs() -> Array[(String, (Array[@wt.Val]) -> Array[@wt.Val])] {
|
||||
none
|
||||
},
|
||||
),
|
||||
(
|
||||
"publish-desktop-shown",
|
||||
a => {
|
||||
@wasm.publish_desktop_shown(a[0].to_bool())
|
||||
none
|
||||
},
|
||||
),
|
||||
(
|
||||
"publish-system",
|
||||
a => {
|
||||
|
||||
Reference in new issue
Block a user