diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-07-14 14:39:42 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-07-14 14:39:57 +0300 |
| commit | d85eaf97990da6a265dd2e09fe110418f7c873ca (patch) | |
| tree | 9b7c593379066ff58c2f7471ed76d41c4ae52375 /src | |
| parent | 25cbb739aec1ee9f523d0ac920df0096d75a270e (diff) | |
| download | niri-d85eaf97990da6a265dd2e09fe110418f7c873ca.tar.gz niri-d85eaf97990da6a265dd2e09fe110418f7c873ca.tar.bz2 niri-d85eaf97990da6a265dd2e09fe110418f7c873ca.zip | |
Fix LockedHint locked condition
Diffstat (limited to 'src')
| -rw-r--r-- | src/niri.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/niri.rs b/src/niri.rs index 80e97baf..60365e0b 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -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; } |
