1
0
Fork 0
forked from wry/wry

tree: refactor latch event dispatch

This commit is contained in:
Julian Orth 2024-09-11 17:46:31 +02:00
parent ada4e5a5f0
commit 01331afc6d
3 changed files with 9 additions and 4 deletions

View file

@ -106,6 +106,13 @@ pub async fn output_render_data(state: Rc<State>) {
}
impl OutputNode {
pub fn latched(&self) {
self.schedule.latched();
for listener in self.latch_event.iter() {
listener.after_latch();
}
}
pub fn update_exclusive_zones(self: &Rc<Self>) {
let mut exclusive = ExclusiveSize::default();
for layer in &self.layers {
@ -153,9 +160,6 @@ impl OutputNode {
y_off: i32,
size: Option<(i32, i32)>,
) {
for listener in self.latch_event.iter() {
listener.after_latch();
}
if let Some(workspace) = self.workspace.get() {
if !workspace.may_capture.get() {
return;