aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalman Farooq <46742354+salman-farooq-sh@users.noreply.github.com>2024-12-11 16:53:41 +0500
committerGitHub <noreply@github.com>2024-12-11 03:53:41 -0800
commitbb3a05bb3fd467cda74282779956de73174c74d5 (patch)
treeee6950ae5e274f430b2f6412b7630f43859ff410
parent40fa82275cc092d313a9a60d01a2b4e3e8e3f7d3 (diff)
downloadniri-bb3a05bb3fd467cda74282779956de73174c74d5.tar.gz
niri-bb3a05bb3fd467cda74282779956de73174c74d5.tar.bz2
niri-bb3a05bb3fd467cda74282779956de73174c74d5.zip
Activate monitors on session unlock (#858)
So that e.g. unlocking by touching the fingerprint reader powers on the monitors. --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> Co-authored-by: Salman Farooq <46742354+SalmanFarooqShiekh@users.noreply.github.com>
-rw-r--r--src/handlers/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs
index b51fc515..f1123371 100644
--- a/src/handlers/mod.rs
+++ b/src/handlers/mod.rs
@@ -404,6 +404,10 @@ impl SessionLockHandler for State {
fn unlock(&mut self) {
self.niri.unlock();
+ self.niri.activate_monitors(&mut self.backend);
+ self.niri
+ .idle_notifier_state
+ .notify_activity(&self.niri.seat);
}
fn new_surface(&mut self, surface: LockSurface, output: WlOutput) {