Commit 2c142482 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: correctly hide the cursor when using Lion's native fullscreen mode. Fixes #5327

parent f2dfc28e
......@@ -77,6 +77,8 @@ enum {
@interface NSWindow (IntroducedInLion)
- (void)setRestorable:(BOOL)b_value;
- (void)toggleFullScreen:(id)id_value;
- (void)windowWillEnterFullScreen:(NSNotification *)notification;
- (void)windowWillExitFullScreen:(NSNotification *)notification;
@end
@interface NSEvent (IntroducedInLion)
......
......@@ -160,6 +160,10 @@
- (void)hasBecomeFullscreen;
- (void)setFrameOnMainThread:(NSData*)packedargs;
/* lion's native fullscreen handling */
- (void)windowWillEnterFullScreen:(NSNotification *)notification;
- (void)windowWillExitFullScreen:(NSNotification *)notification;
@end
@interface VLCProgressBarGradientEffect : NSView {
......
......@@ -1409,6 +1409,18 @@ static VLCMainWindow *_o_sharedInstance = nil;
}
}
#pragma mark -
#pragma mark Lion's native fullscreen handling
- (void)windowWillEnterFullScreen:(NSNotification *)notification
{
[NSCursor setHiddenUntilMouseMoves: YES];
}
- (void)windowWillExitFullScreen:(NSNotification *)notification
{
[NSCursor setHiddenUntilMouseMoves: NO];
}
#pragma mark -
#pragma mark Side Bar Data handling
/* taken under BSD-new from the PXSourceList sample project, adapted for VLC */
......
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