From 65e9faa43c330be854322357b52978a0636323a9 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Thu, 27 Aug 2026 18:00:50 -0600 Subject: [PATCH] feat(wayland): let a layer surface change its input region --- .../wayland/commands/layer_surface.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 }, + )), + )) +}