From 14d9bb795db4bcf867a5d39a57ad6ebbebd93f40 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 22 Jun 2025 22:55:41 +0200 Subject: [PATCH] fixed: wrong code --- AppKit/CPView.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 2f68dcc3d..683382ef2 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -1730,7 +1730,11 @@ var CPViewHighDPIDrawingEnabled = YES; _superview = aSuperview; - // Notifications are now posted manually from _insertSubview and _removeFromSuperview + if (hasOldSuperview) + [self _postViewDidDisappearNotification]; + + if (hasNewSuperview) + [self _postViewDidAppearNotification]; } - (void)_recursiveLostHiddenAncestor