From 29c042d0823292e2d50191cd788f20900f3307a4 Mon Sep 17 00:00:00 2001 From: Pierre Le Fevre Date: Mon, 9 Mar 2026 15:49:39 +0100 Subject: [PATCH] Fix stale thumbnails by including thumbnail identity in WindowInfo equality WindowInfo.== only compared windowID, so SwiftUI's ForEach diffing skipped re-rendering when Phase 2 captured fresh thumbnails with the same window ID. Adding CGImage pointer comparison (===) lets SwiftUI detect the thumbnail change. --- MCT/Model/WindowInfo.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCT/Model/WindowInfo.swift b/MCT/Model/WindowInfo.swift index 3221778..20c39c0 100644 --- a/MCT/Model/WindowInfo.swift +++ b/MCT/Model/WindowInfo.swift @@ -21,6 +21,6 @@ struct WindowInfo: Identifiable, Equatable { } static func == (lhs: WindowInfo, rhs: WindowInfo) -> Bool { - lhs.windowID == rhs.windowID + lhs.windowID == rhs.windowID && lhs.thumbnail === rhs.thumbnail } } -- 2.51.2