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

@ -298,6 +298,7 @@ pub struct State {
pub supports_presentation_feedback: Cell<bool>,
pub eventfd_cache: Rc<EventfdCache>,
pub lazy_event_sources: Rc<LazyEventSources>,
pub post_layout_event_sources: Rc<LazyEventSources>,
pub bo_drop_queue: Rc<ObjectDropQueue<Rc<dyn BufferObject>>>,
pub virtual_outputs: VirtualOutputs,
pub clean_logs_older_than: Cell<Option<SystemTime>>,
@ -936,6 +937,7 @@ impl State {
if !output.is_dummy {
output.schedule_update_render_data();
self.tree_changed();
output.workspace_switched.trigger();
}
}
@ -1169,6 +1171,7 @@ impl State {
self.wait_for_syncobj.clear();
self.xdg_surface_configure_events.clear();
self.lazy_event_sources.clear();
self.post_layout_event_sources.clear();
self.bo_drop_queue.kill();
self.virtual_outputs.clear();
}