Removed control+c behaviour and updated keyboard handler and pam auth

This commit is contained in:
2026-03-05 11:55:29 +01:00
parent a33488adc6
commit 9daa2fdd8f
6 changed files with 600 additions and 371 deletions
-4
View File
@@ -248,19 +248,15 @@ impl LockedSurface {
pub struct LockManager {
surfaces: Vec<LockedSurface>,
config: Config,
auth: crate::auth::Auth,
locked: bool,
}
impl LockManager {
/// Create a new lock manager
pub fn new(config: Config) -> Self {
let auth = crate::auth::Auth::new(config.pam_service.clone());
Self {
surfaces: Vec::new(),
config,
auth,
locked: false,
}
}