perf: prevent costly window recursive views update

This commit is contained in:
lwouis committed 2026-02-11 21:35:28 +01:00
1 parent ce2dfc1f19
commit 41e0e7c688
1 file changed
+4
+4
View File
@@ -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 {