From b20d8e7062ce1cbbffdfa64a7b32d2393237ea26 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 13 Oct 2023 13:30:11 +0400 Subject: Implement ext-session-lock --- src/handlers/compositor.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/handlers/compositor.rs') diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs index d8d93d9c..034f1ca5 100644 --- a/src/handlers/compositor.rs +++ b/src/handlers/compositor.rs @@ -160,6 +160,18 @@ impl CompositorHandler for State { // FIXME: granular redraws for cursors. self.niri.queue_redraw_all(); } + + // This might be a lock surface. + if self.niri.is_locked() { + for (output, state) in &self.niri.output_state { + if let Some(lock_surface) = &state.lock_surface { + if lock_surface.wl_surface() == surface { + self.niri.queue_redraw(output.clone()); + break; + } + } + } + } } } -- cgit