mirror of https://github.com/mpv-player/mpv
cocoa_common: check if the screen has a menubar in a more generic way
Fixes #274
This commit is contained in:
parent
16450fab3f
commit
177c89d948
|
@ -35,7 +35,9 @@
|
|||
|
||||
- (BOOL)hasMenubar
|
||||
{
|
||||
return [self isEqual: [NSScreen screens][0]];
|
||||
NSRect vF = [self visibleFrame];
|
||||
NSRect f = [self frame];
|
||||
return f.size.height + f.origin.y > vF.size.height + vF.origin.y;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue