Fix LockedHint locked condition

This commit is contained in:
Ivan Molodetskikh
2025-07-14 14:39:42 +03:00
parent 25cbb739ae
commit d85eaf9799
+5 -1
View File
@@ -5808,7 +5808,11 @@ impl Niri {
Ok(())
}
let locked = self.is_locked();
// Consider only the fully locked state here. When using the locked hint with sleep
// inhibitor tools, we want to allow sleep only after the screens are fully cleared with
// the lock screen, which corresponds to the Locked state.
let locked = matches!(self.lock_state, LockState::Locked(_));
if self.locked_hint.is_some_and(|h| h == locked) {
return;
}