Allow session lock if existing session lock is no longer valid

This makes it possible to handle a crash in the session lock client by
restarting it, for instance. This is similar to how Sway behaves.
This commit is contained in:
Ian Douglas Scott 2023-10-27 13:33:18 -07:00
parent f7759a765b
commit 9abeeea5df
2 changed files with 20 additions and 6 deletions

View file

@ -50,6 +50,7 @@ use smithay::{
output::{Mode as OutputMode, Output, Scale},
reexports::{
calloop::{LoopHandle, LoopSignal},
wayland_protocols::ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1,
wayland_protocols_misc::server_decoration::server::org_kde_kwin_server_decoration_manager::Mode,
wayland_server::{
backend::{ClientData, ClientId, DisconnectReason},
@ -189,6 +190,7 @@ pub struct SurfaceDmabufFeedback {
#[derive(Debug)]
pub struct SessionLock {
pub ext_session_lock: ExtSessionLockV1,
pub surfaces: HashMap<Output, LockSurface>,
}