1
0
Fork 0
forked from wry/wry

it: add more tests

This commit is contained in:
Julian Orth 2025-08-31 12:27:41 +02:00
parent 412626af59
commit 5e46feaeea
5 changed files with 623 additions and 0 deletions

View file

@ -997,6 +997,16 @@ impl WlSurface {
.push(XWaylandEvent::Configure(window));
}
}
#[cfg(feature = "it")]
pub fn get_pending_damage(&self) -> (Vec<Rect>, Vec<Rect>, bool) {
let pending = self.pending.borrow();
(
pending.surface_damage.clone(),
pending.buffer_damage.clone(),
pending.damage_full,
)
}
}
const MAX_DAMAGE: usize = 32;