feat: overlap notify
This commit is contained in:
parent
6e91eabf4c
commit
301892aaa5
11 changed files with 441 additions and 51 deletions
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
pub mod activation;
|
||||
pub mod layer_surface;
|
||||
pub mod overlap_notify;
|
||||
pub mod popup;
|
||||
pub mod session_lock;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
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,
|
||||
)),
|
||||
))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue