- 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
@@ -538,6 +538,7 @@ MOONBIT_FFI_EXPORT
|
||||
void mp_kms_set_power(int32_t on) {
|
||||
if (!g_seat || (on ? !g_blank : g_blank)) return;
|
||||
g_blank = !on;
|
||||
if (!on) touch_cancel();
|
||||
if (!g_seat_enabled || g_suspended) return; /* applied when the VT comes back */
|
||||
if (on) {
|
||||
set_dpms(1);
|
||||
@@ -545,6 +546,7 @@ void mp_kms_set_power(int32_t on) {
|
||||
} else {
|
||||
set_dpms(0);
|
||||
}
|
||||
fprintf(stderr, "kms: screen %s\n", on ? "on" : "off");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user