1
0
Fork 0
forked from wry/wry

backend: store damaged state in ConnectorData

This commit is contained in:
Julian Orth 2024-09-11 23:00:50 +02:00
parent 7ff7edaa8f
commit ada4e5a5f0
7 changed files with 33 additions and 16 deletions

View file

@ -272,6 +272,10 @@ impl MetalConnector {
self.can_present.set(false);
if let Some(latched) = latched {
self.has_damage.fetch_sub(latched.damage);
node.global
.connector
.damaged
.set(self.has_damage.is_not_zero());
}
self.cursor_changed.set(false);
Ok(())