From f507dfbcc90675db05cabb3b5febaed1a0e997e9 Mon Sep 17 00:00:00 2001 From: scheffle Date: Sun, 21 Apr 2024 14:53:51 +0200 Subject: [PATCH] Revert "fix macOS change in [NSView isDecendantOf:]" This reverts commit cb49b3069d6268e8a11fe2d28720bd44ba43f5c3. --- vstgui/lib/platform/mac/cocoa/nsviewframe.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vstgui/lib/platform/mac/cocoa/nsviewframe.mm b/vstgui/lib/platform/mac/cocoa/nsviewframe.mm index 6d665c87f..34a3bd3e9 100644 --- a/vstgui/lib/platform/mac/cocoa/nsviewframe.mm +++ b/vstgui/lib/platform/mac/cocoa/nsviewframe.mm @@ -329,7 +329,7 @@ static BOOL resignFirstResponder (id self, SEL _cmd) firstResponder = nil; if (firstResponder) { - if (firstResponder != self && [firstResponder isDescendantOf:self]) + if ([firstResponder isDescendantOf:self]) { return YES; }