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
e568e69e
Commit
e568e69e
authored
Feb 23, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: add workaround to avoid grey or transparent top bars in fullscreen mode
close #9469
parent
2477d7d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
modules/gui/macosx/Windows.m
modules/gui/macosx/Windows.m
+33
-0
No files found.
modules/gui/macosx/Windows.m
View file @
e568e69e
...
...
@@ -229,6 +229,39 @@
return
nil
;
}
-
(
NSRect
)
constrainFrameRect
:(
NSRect
)
frameRect
toScreen
:(
NSScreen
*
)
screen
{
if
(
!
screen
)
screen
=
[
self
screen
];
NSRect
screenRect
=
[
screen
frame
];
NSRect
constrainedRect
=
[
super
constrainFrameRect
:
frameRect
toScreen
:
screen
];
/*
* Ugly workaround!
* With Mavericks, there is a nasty bug resulting in grey bars on top in fullscreen mode.
* It looks like this is enforced by the os because the window is in the way for the menu bar.
*
* According to the documentation, this constraining can be changed by overwriting this
* method. But in this situation, even the received frameRect is already contrained with the
* menu bars height substracted. This case is detected here, and the full height is
* enforced again.
*
* See #9469 and radar://15583566
*/
BOOL
b_inFullscreen
=
[
self
fullscreen
]
||
([
self
respondsToSelector
:
@selector
(
inFullscreenTransition
)]
&&
[(
VLCVideoWindowCommon
*
)
self
inFullscreenTransition
]);
if
(
OSX_MAVERICKS
&&
b_inFullscreen
&&
constrainedRect
.
size
.
width
==
screenRect
.
size
.
width
&&
constrainedRect
.
size
.
height
!=
screenRect
.
size
.
height
&&
abs
(
screenRect
.
size
.
height
-
constrainedRect
.
size
.
height
)
<=
25
.)
{
msg_Dbg
(
VLCIntf
,
"Contrain window height %.1f to screen height %.1f"
,
constrainedRect
.
size
.
height
,
screenRect
.
size
.
height
);
constrainedRect
.
size
.
height
=
screenRect
.
size
.
height
;
}
return
constrainedRect
;
}
@end
...
...
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