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 {
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
......@@ -661,7 +661,6 @@
[[[VLCMainWindow sharedInstance] fsPanel] setNonActive:nil];
}
#ifdef MAC_OS_X_VERSION_10_7
-(NSArray*)customWindowsToEnterFullScreenForWindow:(NSWindow *)window
{
if (window == self) {
......@@ -703,7 +702,6 @@
[[window animator] setFrame:frameBeforeLionFullscreen display:YES animate:YES];
} completionHandler:nil];
}
#endif
- (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