Files
chandra/components/icon-desktop/gen/interface/chandra/desktop/desktop-module
nandi c790f96e58
CI / test (push) Failing after 52s
Lock: add session lock from power button and chandra-ctl lock
- Lock the session from the power button or `chandra-ctl lock`
- Unlock with a face or the password; the password always works
- Add compositor lock module with tests, and a polkit unlock policy (org.chandra.unlock)
- Document the lock flow in docs/lock.md and link it from the README
- Add generated interface bindings for the compositor and widget components
2026-11-29 03:24:46 -08:00
..

Optional export that turns a module into a desktop module: instead of a box in the panel it owns the desktop itself, the whole output behind the windows (see docs/desktop-modules.md).

A desktop module is still a plasmoid (it exports plasmoid as well, and may export module-config and import any capability a panel module can), so the same sandbox, draw ops and capability grants apply. What changes is how the shell drives it:

  • plasmoid.render is called with the output's full size (and again with the new size when the output is resized), in desktop coordinates: (0, 0) is the output's top-left corner. The panel and windows are drawn on top; the module draws the whole area.
  • plasmoid.on-event gets the pointer (move, press, release, leave) only where no window, panel, popup or menu covers the desktop, and keys only while the desktop has keyboard focus (after a click on it, until a window is focused: it then gets focus-lost). A right-click on the empty desktop always opens the shell's desktop menu (module settings, system settings), never reaches the module.
  • plasmoid.popup and plasmoid.info's size fields are not used.
  • Hidden settings (a module-config item with an empty label) are saved by the shell in state.edn whenever their value changes after an event, and handed back at the next load: that is how a desktop module keeps state such as icon positions.