/* prevent system sleep */
#import <CoreServices/CoreServices.h>
-#import <CoreServices/../Frameworks/OSServices.framework/Headers/Power.h>
-
-/* SystemUIMode */
-#import <Carbon/Carbon.h>
#include <vlc_keys.h>
[self setMovableByWindowBackground: NO];
if( [screen isMainScreen] )
- SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
+ [NSMenu setMenuBarVisible:NO];
initialFrame = [self frame];
[self setFrame:[screen frame] display:YES animate:YES];
[NSScreen unblackoutScreens];
[[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
- SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
+ [NSMenu setMenuBarVisible:YES];
+
[self setFrame:initialFrame display:YES animate:YES];
[self setMovableByWindowBackground: YES];
if( var_GetBool( p_vout, "video-on-top" ) )