Skip to content

Commit

Permalink
fix macOS change in [NSView isDecendantOf:]
Browse files Browse the repository at this point in the history
now the call returns true if you set the argument to the same view
  • Loading branch information
scheffle committed Mar 5, 2024
1 parent c55805c commit cb49b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstgui/lib/platform/mac/cocoa/nsviewframe.mm
Expand Up @@ -329,7 +329,7 @@ static BOOL resignFirstResponder (id self, SEL _cmd)
firstResponder = nil;
if (firstResponder)
{
if ([firstResponder isDescendantOf:self])
if (firstResponder != self && [firstResponder isDescendantOf:self])
{
return YES;
}
Expand Down

0 comments on commit cb49b30

Please sign in to comment.