We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56fc4fb commit cca095dCopy full SHA for cca095d
2 files changed
src/backlight.rs
@@ -86,4 +86,7 @@ impl BacklightManager {
86
set_backlight(&self.bl_file, self.current_bl);
87
}
88
89
+ pub fn current_bl(&self) -> u32 {
90
+ self.current_bl
91
+ }
92
src/main.rs
@@ -313,7 +313,7 @@ fn main() {
313
314
},
315
Event::Touch(te) => {
316
- if Some(te.device()) != digitizer {
+ if Some(te.device()) != digitizer || backlight.current_bl() == 0 {
317
continue
318
319
match te {
0 commit comments