From 41e0e7c688cb0073e6034bdf57ab359383aad5fc Mon Sep 17 00:00:00 2001 From: lwouis Date: Sun, 8 Feb 2026 16:57:53 +0100 Subject: [PATCH] perf: prevent costly window recursive views update --- src/ui/main-window/ThumbnailsView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/main-window/ThumbnailsView.swift b/src/ui/main-window/ThumbnailsView.swift index 7355d333..57a800b4 100644 --- a/src/ui/main-window/ThumbnailsView.swift +++ b/src/ui/main-window/ThumbnailsView.swift @@ -384,6 +384,10 @@ class ScrollView: NSScrollView { class FlippedView: NSView { override var isFlipped: Bool { true } + // Prevent AppKit from recursively marking all NSControl subviews as needsDisplay during makeKeyAndOrderFront + // Titles, Icons, and Traffic Icons would otherwise take lots of resource to update + // We update everything explicitly, so this can be disabled + @objc func _windowChangedKeyState() {} } enum Direction {