1
0
Fork 0
forked from wry/wry

create event system

This commit is contained in:
atagen 2026-04-07 16:13:45 +10:00
parent 21819e27d2
commit 18a0c78657
9 changed files with 65 additions and 5 deletions

View file

@ -415,6 +415,8 @@ pub struct ToplevelData {
pub seat_foci: CopyHashMap<SeatId, ()>,
pub content_type: Cell<Option<ContentType>>,
pub property_changed_source: OnceCell<Rc<LazyEventSource>>,
pub mapped_source: Rc<LazyEventSource>,
pub unmapped_source: Rc<LazyEventSource>,
}
impl ToplevelData {
@ -469,6 +471,8 @@ impl ToplevelData {
seat_foci: Default::default(),
content_type: Default::default(),
property_changed_source: Default::default(),
mapped_source: state.lazy_event_sources.create_source(),
unmapped_source: state.lazy_event_sources.create_source(),
}
}