mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-22 07:22:52 +00:00
* Source/NSMenu.m (windowDidChangeScreen:): join two if statements.
This commit is contained in:
parent
557486906a
commit
99e0f4ddda
2 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue