#import "embeddedwindow.h"
#import "fspanel.h"
+/* SetSystemUIMode, ... */
+#import <Carbon/Carbon.h>
+
/*****************************************************************************
* VLCEmbeddedWindow Implementation
*****************************************************************************/
CGDisplayFade( token, 0.5, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES );
if ([screen isMainScreen])
- [NSMenu setMenuBarVisible:NO];
+ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
[[self contentView] replaceSubview:o_view with:o_temp_view];
[o_temp_view setFrame:[o_view frame]];
}
if ([screen isMainScreen])
- [NSMenu setMenuBarVisible:NO];
+ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
dict1 = [[NSMutableDictionary alloc] initWithCapacity:2];
dict2 = [[NSMutableDictionary alloc] initWithCapacity:3];
CGDisplayFade( token, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES );
[[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
- [NSMenu setMenuBarVisible:YES];
+ SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
/* Will release the lock */
[self hasEndedFullscreen];
[self orderFront: self];
[[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
- [NSMenu setMenuBarVisible:YES];
+ SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
if (o_fullscreen_anim1)
{
/* prevent system sleep */
#import <CoreServices/CoreServices.h>
+/* FIXME: HACK!! */
+#ifdef __x86_64__
+#import <CoreServices/../Frameworks/OSServices.framework/Headers/Power.h>
+#endif
+
+/* SystemUIMode */
+#import <Carbon/Carbon.h>
#include <vlc_keys.h>
[self setMovableByWindowBackground: NO];
if( [screen isMainScreen] )
- [NSMenu setMenuBarVisible:NO];
+ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
initialFrame = [self frame];
[self setFrame:[screen frame] display:YES animate:YES];
[NSScreen unblackoutScreens];
[[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
- [NSMenu setMenuBarVisible:YES];
+ SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
[self setFrame:initialFrame display:YES animate:YES];
[self setMovableByWindowBackground: YES];
#import <Cocoa/Cocoa.h>
+/* SetSystemUIMode, ... */
+#import <Carbon/Carbon.h>
+
@implementation VLCMinimalVoutWindow
- (id)initWithContentRect:(NSRect)contentRect
{
{
fullscreen = YES;
initialFrame = [self frame];
- [NSMenu setMenuBarVisible:NO];
+ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
[self setFrame:[[self screen] frame] display:YES animate:YES];
}
- (void)leaveFullscreen
{
fullscreen = NO;
- [NSMenu setMenuBarVisible:YES];
+ SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
[self setFrame:initialFrame display:YES animate:YES];
}