iced-yoda/winit/src/platform_specific/wayland/commands/overlap_notify.rs

15 lines
431 B
Rust
Raw Normal View History

2024-11-26 16:09:31 -05:00
use iced_futures::core::window::Id;
use iced_runtime::{
platform_specific::{self, wayland},
task, Action, Task,
};
/// Request subscription for overlap notification events on the surface
pub fn overlap_notify<Message>(id: Id, enable: bool) -> Task<Message> {
task::effect(Action::PlatformSpecific(
platform_specific::Action::Wayland(wayland::Action::OverlapNotify(
id, enable,
)),
))
}