Skip to content

Commit e4c1f7c

Browse files
committed
Update last_active on gesture events too
1 parent cca095d commit e4c1f7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl BacklightManager {
5252
}
5353
pub fn process_event(&mut self, event: &Event) {
5454
match event {
55-
Event::Keyboard(_) | Event::Pointer(_) | Event::Touch(_) => {
55+
Event::Keyboard(_) | Event::Pointer(_) | Event::Gesture(_) | Event::Touch(_) => {
5656
self.last_active = Instant::now();
5757
},
5858
Event::Switch(SwitchEvent::Toggle(toggle)) => {

0 commit comments

Comments
 (0)