diff --git a/winit/src/platform_specific/wayland/commands/layer_surface.rs b/winit/src/platform_specific/wayland/commands/layer_surface.rs index cdb4e93d..5d8a4588 100644 --- a/winit/src/platform_specific/wayland/commands/layer_surface.rs +++ b/winit/src/platform_specific/wayland/commands/layer_surface.rs @@ -1,5 +1,6 @@ //! Interact with the window of your application. +use crate::core::Rectangle; use crate::core::window::Id as SurfaceId; use iced_runtime::{ self, Action, Task, @@ -125,3 +126,15 @@ pub fn set_padding( )), )) } + +/// +pub fn set_input_zone( + id: SurfaceId, + zone: Option>, +) -> Task { + task::effect(Action::PlatformSpecific( + platform_specific::Action::Wayland(wayland::Action::LayerSurface( + wayland::layer_surface::Action::InputZone { id, zone }, + )), + )) +}