]> git.sesse.net Git - vlc/commitdiff
macosx: add NSFullScreenWindowMask to compatibilityFixes.h and avoid NSAnimationConte...
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 1 Mar 2014 12:28:41 +0000 (13:28 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 1 Mar 2014 16:32:53 +0000 (17:32 +0100)
modules/gui/macosx/CompatibilityFixes.h
modules/gui/macosx/Windows.m

index 651a4b9a0a0bede1114970c796b54da7a0857d9a..caab7d528187cd02b97767d49840e3671c90946f 100644 (file)
@@ -44,6 +44,10 @@ enum {
     NSApplicationPresentationAutoHideToolbar            = (1 << 11)
 };
 
+enum {
+    NSFullScreenWindowMask      = 1 << 14
+};
+
 enum {
     NSWindowAnimationBehaviorDefault = 0,       // let AppKit infer animation behavior for this window
     NSWindowAnimationBehaviorNone = 2,          // suppress inferred animations (don't animate)
@@ -67,4 +71,8 @@ typedef NSInteger NSWindowAnimationBehavior;
 - (BOOL)isDirectionInvertedFromDevice;
 @end
 
+@interface NSAnimationContext (IntroducedInLion)
++ (void)runAnimationGroup:(void (^)(NSAnimationContext *context))changes completionHandler:(void (^)(void))completionHandler;
+@end
+
 #endif
index 062b0eab5a8bdd8f2c1adc39f89dbfff56d9ef82..2c56cc5a9b676ee3432284accf3c38a3425d4caa 100644 (file)
     [[[VLCMainWindow sharedInstance] fsPanel] setNonActive:nil];
 }
 
-#ifdef MAC_OS_X_VERSION_10_7
 -(NSArray*)customWindowsToEnterFullScreenForWindow:(NSWindow *)window
 {
     if (window == self) {
         [[window animator] setFrame:frameBeforeLionFullscreen display:YES animate:YES];
     } completionHandler:nil];
 }
-#endif
 
 - (void)windowWillEnterFullScreen:(NSNotification *)notification
 {