- 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
@@ -151,6 +151,7 @@ pub(all) struct ChandraCompositor {
|
||||
/// idle, and whether this idle spell already suspended.
|
||||
mut last_input_ms : UInt64
|
||||
mut screen_off : Bool
|
||||
mut manual_screen_off : Bool
|
||||
mut idle_suspended : Bool
|
||||
mut output_w : Int
|
||||
mut output_h : Int
|
||||
@@ -384,6 +385,7 @@ pub fn ChandraCompositor::new(
|
||||
login_session: false,
|
||||
last_input_ms: @sys.monotonic_ms(),
|
||||
screen_off: false,
|
||||
manual_screen_off: false,
|
||||
idle_suspended: false,
|
||||
output_w,
|
||||
output_h,
|
||||
@@ -2071,6 +2073,27 @@ fn ChandraCompositor::handle_input_inner(
|
||||
ev : @nested.InputEvent,
|
||||
time_ms : UInt,
|
||||
) -> Unit {
|
||||
match ev {
|
||||
Key(116U, pressed) => {
|
||||
if pressed {
|
||||
if self.screen_off || self.manual_screen_off {
|
||||
self.manual_screen_off = false
|
||||
self.note_activity(@sys.monotonic_ms())
|
||||
} else {
|
||||
self.manual_screen_off = true
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
_ => ()
|
||||
}
|
||||
if self.manual_screen_off {
|
||||
return
|
||||
}
|
||||
if self.screen_off {
|
||||
self.note_activity(@sys.monotonic_ms())
|
||||
return
|
||||
}
|
||||
self.note_activity(@sys.monotonic_ms())
|
||||
match ev {
|
||||
Modifiers(dep, lat, lock, group) => {
|
||||
|
||||
Reference in new issue
Block a user