cosmic-session-lock-layer-v1 protocol
This commit is contained in:
parent
9ef36c9604
commit
87e1787fbb
6 changed files with 134 additions and 95 deletions
|
|
@ -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 },
|
||||
)),
|
||||
))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue