From fef8821cf680faa0cab592fae61e83a4b866b0cf Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 9 Jun 2022 00:43:23 -0700 Subject: [PATCH] [Visualizer] Add extra condition to visible check Add an extra condition to the visibility check, which is similar to the previous version of this check, which now guards against the window it is hosted in not being visible. Signed-off-by: Christopher Snowhill --- Utils/NSView+Visibility.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utils/NSView+Visibility.m b/Utils/NSView+Visibility.m index 56a23d2e4..e8e954590 100644 --- a/Utils/NSView+Visibility.m +++ b/Utils/NSView+Visibility.m @@ -14,6 +14,10 @@ return NO; } + if(![self.window isVisible]) { + return NO; + } + // Might have zero opacity. if(self.alphaValue == 0 || self.hiddenOrHasHiddenAncestor) { return NO;