Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
daf2eb53
Commit
daf2eb53
authored
Jun 02, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: try to correctly hide fspanel
hopefully fixes #8489
parent
b92728c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+0
-3
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+12
-5
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+2
-0
No files found.
modules/gui/macosx/MainWindow.m
View file @
daf2eb53
...
...
@@ -802,7 +802,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
void
)
showFullscreenController
{
id
currentWindow
=
[
NSApp
keyWindow
];
if
([
currentWindow
respondsToSelector
:
@selector
(
hasActiveVideo
)]
&&
[
currentWindow
hasActiveVideo
])
{
if
([
currentWindow
respondsToSelector
:
@selector
(
fullscreen
)]
&&
[
currentWindow
fullscreen
]
&&
!
[[
currentWindow
videoView
]
isHidden
])
{
...
...
@@ -810,10 +809,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
if
([[
VLCMain
sharedInstance
]
activeVideoPlayback
])
[
o_fspanel
fadeIn
];
}
}
}
-
(
void
)
makeKeyAndOrderFront
:
(
id
)
sender
...
...
modules/gui/macosx/fspanel.m
View file @
daf2eb53
...
...
@@ -72,6 +72,8 @@
if
(
!
isInside
)
[
self
mouseExited
:
NULL
];
[
self
setAnimationBehavior
:
NSWindowAnimationBehaviorNone
];
/* get a notification if VLC isn't the active app anymore */
[[
NSNotificationCenter
defaultCenter
]
addObserver:
self
...
...
@@ -79,7 +81,8 @@
name:
NSApplicationDidResignActiveNotification
object:
NSApp
];
/* get a notification if VLC is the active app again */
/* Get a notification if VLC is the active app again.
Needed as becomeKeyWindow does not get called when window is activated by clicking */
[[
NSNotificationCenter
defaultCenter
]
addObserver:
self
selector:
@selector
(
setActive
:)
...
...
@@ -170,13 +173,15 @@
-
(
void
)
setNonActive
:(
id
)
noData
{
b_nonActive
=
YES
;
[
self
orderOut
:
self
];
/* here's fadeOut, just without visibly fading */
b_displayed
=
NO
;
[
self
setAlphaValue
:
0
.
0
];
[
self
setFadeTimer
:
nil
];
b_fadeQueued
=
NO
;
[
self
orderOut
:
self
];
}
-
(
void
)
setActive
:(
id
)
noData
...
...
@@ -195,8 +200,9 @@
b_voutWasUpdated
=
NO
;
}
if
([
self
alphaValue
]
<
1
.
0
)
if
([
self
alphaValue
]
<
1
.
0
)
{
[
self
setAlphaValue
:[
self
alphaValue
]
+
0
.
1
];
}
if
([
self
alphaValue
]
>=
1
.
0
)
{
b_displayed
=
YES
;
[
self
setAlphaValue
:
1
.
0
];
...
...
@@ -218,8 +224,9 @@
[
self
fadeIn
];
return
;
}
if
([
self
alphaValue
]
>
0
.
0
)
if
([
self
alphaValue
]
>
0
.
0
)
{
[
self
setAlphaValue
:[
self
alphaValue
]
-
0
.
05
];
}
if
([
self
alphaValue
]
<=
0
.
05
)
{
b_displayed
=
NO
;
[
self
setAlphaValue
:
0
.
0
];
...
...
@@ -292,7 +299,7 @@
b_keptVisible
=
YES
;
/* get us a valid timer */
if
(
!
b_alreadyCounting
)
{
if
(
!
b_alreadyCounting
)
{
i_timeToKeepVisibleInSec
=
var_CreateGetInteger
(
VLCIntf
,
"mouse-hide-timeout"
)
/
500
;
if
(
hideAgainTimer
)
{
[
hideAgainTimer
invalidate
];
...
...
modules/gui/macosx/intf.m
View file @
daf2eb53
...
...
@@ -1379,6 +1379,8 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
showFullscreenController
{
// defer selector here (possibly another time) to ensure that keyWindow is set properly
// (needed for NSApplicationDidBecomeActiveNotification)
[
o_mainwindow
performSelectorOnMainThread
:
@selector
(
showFullscreenController
)
withObject
:
nil
waitUntilDone
:
NO
];
}
...
...
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