feat(wayland): shortcut inhibit

This commit is contained in:
Ashley Wulber 2025-09-09 19:50:35 -04:00
parent 8e7b7e586f
commit 54a69a0523
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
11 changed files with 360 additions and 8 deletions

View file

@ -211,6 +211,7 @@ pub enum SctkEvent {
SurfaceScaleFactorChanged(f64, WlSurface, window::Id),
Winit(WindowId, WindowEvent),
Subcompositor(SubsurfaceState),
ShortcutsInhibited(bool),
}
#[cfg(feature = "a11y")]
@ -1697,6 +1698,14 @@ impl SctkEvent {
}
}
},
SctkEvent::ShortcutsInhibited(v) => events.push((
None,
iced_runtime::core::Event::PlatformSpecific(
PlatformSpecific::Wayland(
wayland::Event::ShortcutsInhibited(v),
),
),
)),
}
}
}