Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
2c142482
Commit
2c142482
authored
Oct 15, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: correctly hide the cursor when using Lion's native fullscreen mode. Fixes #5327
parent
f2dfc28e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
modules/gui/macosx/CompatibilityFixes.h
modules/gui/macosx/CompatibilityFixes.h
+2
-0
modules/gui/macosx/MainWindow.h
modules/gui/macosx/MainWindow.h
+4
-0
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+12
-0
No files found.
modules/gui/macosx/CompatibilityFixes.h
View file @
2c142482
...
...
@@ -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
)
...
...
modules/gui/macosx/MainWindow.h
View file @
2c142482
...
...
@@ -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
{
...
...
modules/gui/macosx/MainWindow.m
View file @
2c142482
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment