- Add compositor/shell/backlight.mbt for backlight control in the shell - Update wit/capabilities.wit and wit/host/plasmoids.wit, then regenerate the component and interface ffi.mbt bindings (mostly export reordering) - Add world/launcher-widget/README.md
This commit is contained in:
1 parent
2e00009c79
commit
74235cb0ca
84 files changed
+1525
-864
No files matched your search
@@ -216,6 +216,12 @@ fn main {
|
||||
for ev in k.take_input() {
|
||||
comp.handle_input(ev, now_ms)
|
||||
}
|
||||
match comp.power_tick(@sys.monotonic_ms()) {
|
||||
ScreenOff => k.set_power(false)
|
||||
ScreenOn => k.set_power(true)
|
||||
Suspend => comp.system_power(0)
|
||||
NoChange => ()
|
||||
}
|
||||
match comp.take_pending_rotation() {
|
||||
Some(rot) => {
|
||||
let (nw, nh) = k.set_rotation(rot)
|
||||
|
||||
Reference in new issue
Block a user