jay-compositor 1.14.0

The Jay compositor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use {crate::utils::asyncevent::AsyncEvent, std::rc::Rc};

#[derive(Default)]
pub struct OnDropEvent {
    ae: Rc<AsyncEvent>,
}

impl OnDropEvent {
    pub fn event(&self) -> Rc<AsyncEvent> {
        self.ae.clone()
    }
}

impl Drop for OnDropEvent {
    fn drop(&mut self) {
        self.ae.trigger()
    }
}