overlap-notify: Initial implementation

This commit is contained in:
Victoria Brekenfeld 2024-09-19 18:11:54 +02:00 • committed by Victoria Brekenfeld
parent 9c7c41c508
commit bd04d68106
5 changed files with 405 additions and 0 deletions

View file

@ -76,6 +76,10 @@ impl ToplevelStateInner {
..Default::default()
})
}
pub fn foreign_handle(&self) -> Option<&ForeignToplevelHandle> {
self.foreign_handle.as_ref()
}
}
pub struct ToplevelHandleStateInner<W: Window> {
@ -394,6 +398,10 @@ where
pub fn global_id(&self) -> GlobalId {
self.global.clone()
}
pub fn registered_toplevels(&self) -> impl Iterator<Item = &W> {
self.toplevels.iter()
}
}
fn send_toplevel_to_client<D, W: 'static>(