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
791354cd
Commit
791354cd
authored
Mar 31, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: preserve fullscreen state also in native fullscreen mode
should close #10670
parent
dd7b6ad8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
modules/gui/macosx/VLCVoutWindowController.m
modules/gui/macosx/VLCVoutWindowController.m
+6
-6
modules/gui/macosx/Windows.m
modules/gui/macosx/Windows.m
+2
-2
No files found.
modules/gui/macosx/VLCVoutWindowController.m
View file @
791354cd
...
@@ -235,6 +235,12 @@
...
@@ -235,6 +235,12 @@
return
;
return
;
}
}
[[
o_window
videoView
]
releaseVoutThread
];
// set active video to no BEFORE closing the window and exiting fullscreen
// (avoid stopping playback due to NSWindowWillCloseNotification, preserving fullscreen state)
[
o_window
setHasActiveVideo
:
NO
];
// prevent visible extra window if in fullscreen
// prevent visible extra window if in fullscreen
NSDisableScreenUpdates
();
NSDisableScreenUpdates
();
BOOL
b_native
=
[[
VLCMainWindow
sharedInstance
]
nativeFullscreenMode
];
BOOL
b_native
=
[[
VLCMainWindow
sharedInstance
]
nativeFullscreenMode
];
...
@@ -249,12 +255,6 @@
...
@@ -249,12 +255,6 @@
[
o_window
toggleFullScreen
:
self
];
[
o_window
toggleFullScreen
:
self
];
}
}
[[
o_window
videoView
]
releaseVoutThread
];
// set active video to no BEFORE closing the window to avoid stopping playback
// due to NSWindowWillCloseNotification
[
o_window
setHasActiveVideo
:
NO
];
if
([
o_window
class
]
!=
[
VLCMainWindow
class
])
{
if
([
o_window
class
]
!=
[
VLCMainWindow
class
])
{
[
o_window
close
];
[
o_window
close
];
}
}
...
...
modules/gui/macosx/Windows.m
View file @
791354cd
...
@@ -786,9 +786,9 @@
...
@@ -786,9 +786,9 @@
b_in_fullscreen_transition
=
YES
;
b_in_fullscreen_transition
=
YES
;
[
self
setFullscreen
:
NO
];
[
self
setFullscreen
:
NO
];
if
([
self
hasActiveVideo
])
{
var_SetBool
(
pl_Get
(
VLCIntf
),
"fullscreen"
,
false
);
var_SetBool
(
pl_Get
(
VLCIntf
),
"fullscreen"
,
false
);
if
([
self
hasActiveVideo
])
{
vout_thread_t
*
p_vout
=
getVoutForActiveWindow
();
vout_thread_t
*
p_vout
=
getVoutForActiveWindow
();
if
(
p_vout
)
{
if
(
p_vout
)
{
var_SetBool
(
p_vout
,
"fullscreen"
,
false
);
var_SetBool
(
p_vout
,
"fullscreen"
,
false
);
...
...
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