fix bug where screen off was triggered while in inhibit state
This commit is contained in:
parent
08c1cf318e
commit
eaa09a6fef
1 changed files with 2 additions and 4 deletions
|
|
@ -181,10 +181,8 @@ impl State {
|
||||||
};
|
};
|
||||||
|
|
||||||
if self.screen_off_idle_notification.as_ref().map(|x| x.time) != screen_off_time {
|
if self.screen_off_idle_notification.as_ref().map(|x| x.time) != screen_off_time {
|
||||||
self.screen_off_idle_notification = self
|
self.screen_off_idle_notification =
|
||||||
.conf
|
screen_off_time.map(|time| IdleNotification::new(&self.inner, time));
|
||||||
.screen_off_time
|
|
||||||
.map(|time| IdleNotification::new(&self.inner, time));
|
|
||||||
// Initially not idle; server sends `resumed` only after `idled`
|
// Initially not idle; server sends `resumed` only after `idled`
|
||||||
self.update_screen_off_idle(false);
|
self.update_screen_off_idle(false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue