cosmic-session-lock-layer-v1 protocol

This commit is contained in:
Ian Douglas Scott 2026-09-08 14:10:18 -07:00 • committed by Jeremy Soller
parent 9ef36c9604
commit 87e1787fbb
6 changed files with 134 additions and 95 deletions

View file

@ -138,3 +138,14 @@ pub fn set_input_zone<Message>(
)),
))
}
pub fn set_show_on_lock<Message>(
id: SurfaceId,
value: bool,
) -> Task<Message> {
task::effect(Action::PlatformSpecific(
platform_specific::Action::Wayland(wayland::Action::LayerSurface(
wayland::layer_surface::Action::ShowOnLock { id, value },
)),
))
}