mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Fix LockedHint locked condition
This commit is contained in:
+5
-1
@@ -5808,7 +5808,11 @@ impl Niri {
|
|||||||
Ok(())
|
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) {
|
if self.locked_hint.is_some_and(|h| h == locked) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user