Commit 03e70c71 authored by David Fuhrmann's avatar David Fuhrmann

macosx: add NSFullScreenWindowMask to compatibilityFixes.h and avoid NSAnimationContext warning

parent 56046780
...@@ -44,6 +44,10 @@ enum { ...@@ -44,6 +44,10 @@ enum {
NSApplicationPresentationAutoHideToolbar = (1 << 11) NSApplicationPresentationAutoHideToolbar = (1 << 11)
}; };
enum {
NSFullScreenWindowMask = 1 << 14
};
enum { enum {
NSWindowAnimationBehaviorDefault = 0, // let AppKit infer animation behavior for this window NSWindowAnimationBehaviorDefault = 0, // let AppKit infer animation behavior for this window
NSWindowAnimationBehaviorNone = 2, // suppress inferred animations (don't animate) NSWindowAnimationBehaviorNone = 2, // suppress inferred animations (don't animate)
...@@ -67,4 +71,8 @@ typedef NSInteger NSWindowAnimationBehavior; ...@@ -67,4 +71,8 @@ typedef NSInteger NSWindowAnimationBehavior;
- (BOOL)isDirectionInvertedFromDevice; - (BOOL)isDirectionInvertedFromDevice;
@end @end
@interface NSAnimationContext (IntroducedInLion)
+ (void)runAnimationGroup:(void (^)(NSAnimationContext *context))changes completionHandler:(void (^)(void))completionHandler;
@end
#endif #endif
...@@ -661,7 +661,6 @@ ...@@ -661,7 +661,6 @@
[[[VLCMainWindow sharedInstance] fsPanel] setNonActive:nil]; [[[VLCMainWindow sharedInstance] fsPanel] setNonActive:nil];
} }
#ifdef MAC_OS_X_VERSION_10_7
-(NSArray*)customWindowsToEnterFullScreenForWindow:(NSWindow *)window -(NSArray*)customWindowsToEnterFullScreenForWindow:(NSWindow *)window
{ {
if (window == self) { if (window == self) {
...@@ -703,7 +702,6 @@ ...@@ -703,7 +702,6 @@
[[window animator] setFrame:frameBeforeLionFullscreen display:YES animate:YES]; [[window animator] setFrame:frameBeforeLionFullscreen display:YES animate:YES];
} completionHandler:nil]; } completionHandler:nil];
} }
#endif
- (void)windowWillEnterFullScreen:(NSNotification *)notification - (void)windowWillEnterFullScreen:(NSNotification *)notification
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment