winit/wayland: Add action to update layer shell input zone

This commit is contained in:
Ian Douglas Scott 2025-09-18 13:27:09 -07:00 committed by Ashley Wulber
parent ea4f704f0f
commit 49f1c2250b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 35 additions and 2 deletions

View file

@ -137,6 +137,12 @@ pub enum Action {
/// keyboard interactivity of the layer surface
keyboard_interactivity: KeyboardInteractivity,
},
InputZone {
/// id of the layer surface
id: Id,
/// input zone
zone: Option<Vec<Rectangle>>,
},
/// layer of the layer surface
Layer {
/// id of the layer surface
@ -176,11 +182,15 @@ impl fmt::Debug for Action {
),
Action::KeyboardInteractivity { id, keyboard_interactivity } => write!(
f,
"Action::LayerSurfaceAction::Margin {{ id: {:#?}, keyboard_interactivity: {:?} }}", id, keyboard_interactivity
"Action::LayerSurfaceAction::KeyboardInteractivity {{ id: {:#?}, keyboard_interactivity: {:?} }}", id, keyboard_interactivity
),
Action::InputZone { id, zone } => write!(
f,
"Action::LayerSurfaceAction::InputZone {{ id: {:#?}, zone: {:?} }}", id, zone
),
Action::Layer { id, layer } => write!(
f,
"Action::LayerSurfaceAction::Margin {{ id: {:#?}, layer: {:?} }}", id, layer
"Action::LayerSurfaceAction::Layer {{ id: {:#?}, layer: {:?} }}", id, layer
),
}
}