From e514c32c9d5e74471d89432642f1fa744468bece Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Fri, 13 Sep 2024 15:09:24 +0200 Subject: [PATCH] metal: reset frontend damage state when latching Fixes ada4e5a5 --- src/backends/metal/present.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backends/metal/present.rs b/src/backends/metal/present.rs index 789a4a3f..36ee87b4 100644 --- a/src/backends/metal/present.rs +++ b/src/backends/metal/present.rs @@ -269,10 +269,6 @@ 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(()) @@ -486,6 +482,7 @@ impl MetalConnector { if damage == 0 { return None; } + node.global.connector.damaged.set(false); let render_hw_cursor = !self.cursor_enabled.get(); let mode = node.global.mode.get(); let pass = create_render_pass(