Skip to content

Commit

Permalink
Activate monitors on session unlock (#858)
Browse files Browse the repository at this point in the history
So that e.g. unlocking by touching the fingerprint reader powers on the monitors.

---------

Co-authored-by: Ivan Molodetskikh <[email protected]>
Co-authored-by: Salman Farooq <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
1 parent 40fa822 commit bb3a05b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bb3a05b

Please sign in to comment.