* Source/NSMenu.m (windowDidChangeScreen:): join two if statements.

This commit is contained in:
Sergii Stoian 2020-02-23 01:56:33 +02:00
parent 557486906a
commit 99e0f4ddda
2 changed files with 6 additions and 5 deletions

View file

@ -1897,11 +1897,8 @@ static BOOL menuBarVisible = YES;
NSRect newScreenFrame;
CGFloat yOffset;
if ([window isKindOfClass: [NSMenuPanel class]]
|| [window isKindOfClass: [NSPanel class]])
return;
if (window == _aWindow
if ([window isKindOfClass: [NSPanel class]]
|| window == _aWindow
|| [window isKeyWindow] == NO
|| [_aWindow screen] == [window screen]
|| [_aWindow isVisible] == NO)