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
8f38f673
Commit
8f38f673
authored
Feb 10, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix another wrong occurrence of the fspanel
parent
1c7a47c6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
modules/gui/macosx/Windows.h
modules/gui/macosx/Windows.h
+5
-2
modules/gui/macosx/Windows.m
modules/gui/macosx/Windows.m
+6
-2
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
No files found.
modules/gui/macosx/Windows.h
View file @
8f38f673
...
...
@@ -44,8 +44,7 @@
BOOL
b_has_active_video
;
/*
* normal fullscreen: YES when all animations are over
* lion fullscreen: toggled when fs animation starts
* YES when all animations are over
* for fullscreen window: always YES
*/
BOOL
b_fullscreen
;
...
...
@@ -108,10 +107,14 @@ static const float f_min_video_height = 70.0;
NSInteger
i_originalLevel
;
NSTimer
*
t_hide_mouse_timer
;
// true when the window is in transition for entering lion fullscreen
BOOL
b_entering_fullscreen_transition
;
}
@property
(
nonatomic
,
assign
)
VLCVoutView
*
videoView
;
@property
(
readonly
)
VLCControlsBarCommon
*
controlsBar
;
@property
(
readonly
)
BOOL
enteringFullscreenTransition
;
-
(
void
)
setWindowLevel
:(
NSInteger
)
i_state
;
...
...
modules/gui/macosx/Windows.m
View file @
8f38f673
...
...
@@ -243,6 +243,7 @@
@synthesize
videoView
=
o_video_view
;
@synthesize
controlsBar
=
o_controls_bar
;
@synthesize
enteringFullscreenTransition
=
b_entering_fullscreen_transition
;
#pragma mark -
#pragma mark Init
...
...
@@ -527,7 +528,7 @@
return
proposedFrameSize
;
// needed when entering lion fullscreen mode
if
([
self
fullscreen
])
if
(
b_entering_fullscreen_transition
||
[
self
fullscreen
])
return
proposedFrameSize
;
if
([[
VLCCoreInteraction
sharedInstance
]
aspectRatioIsLocked
])
{
...
...
@@ -598,7 +599,7 @@
// workaround, see #6668
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationFullScreen
|
NSApplicationPresentationAutoHideDock
|
NSApplicationPresentationAutoHideMenuBar
)];
[
self
setFullscreen
:
YES
]
;
b_entering_fullscreen_transition
=
YES
;
var_SetBool
(
pl_Get
(
VLCIntf
),
"fullscreen"
,
true
);
...
...
@@ -641,6 +642,9 @@
// But this creates some problems when leaving fs over remote intfs, so activate app here.
[
NSApp
activateIgnoringOtherApps
:
YES
];
[
self
setFullscreen
:
YES
];
b_entering_fullscreen_transition
=
NO
;
if
([
self
hasActiveVideo
])
{
[[[
VLCMainWindow
sharedInstance
]
fsPanel
]
setVoutWasUpdated
:
self
];
[[[
VLCMainWindow
sharedInstance
]
fsPanel
]
setActive
:
nil
];
...
...
modules/gui/macosx/intf.m
View file @
8f38f673
...
...
@@ -1272,7 +1272,7 @@ static VLCMain *_o_sharedMainInstance = nil;
// fullscreen might be triggered twice (vout event)
// so ignore duplicate events here
if
((
b_fullscreen
&&
!
[
o_active_window
fullscreen
]
)
||
if
((
b_fullscreen
&&
!
([
o_active_window
fullscreen
]
||
[
o_active_window
enteringFullscreenTransition
])
)
||
(
!
b_fullscreen
&&
[
o_active_window
fullscreen
]))
{
[
o_active_window
toggleFullScreen
:
self
];
...
...
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