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
bd4d1b69
Commit
bd4d1b69
authored
Jan 21, 2012
by
David Fuhrmann
Committed by
Felix Paul Kühne
Jan 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: leave fullscreen when last playlist item stops
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
f043aa0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+1
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+11
-7
No files found.
modules/gui/macosx/MainWindow.m
View file @
bd4d1b69
...
...
@@ -1221,7 +1221,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
self
makeFirstResponder
:
nil
];
if
(
!
b_videoPlayback
&&
b_fullscreen
&&
!
b_nativeFullscreenMode
)
[
self
leaveFullscreenAndFadeOut
:
YES
];
[
[
VLCCoreInteraction
sharedInstance
]
toggleFullscreen
];
}
-
(
void
)
resizeWindow
...
...
modules/gui/macosx/intf.m
View file @
bd4d1b69
...
...
@@ -1350,16 +1350,20 @@ unsigned int CocoaKeyToVLC( unichar i_key )
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationDefault
)];
}
else
{
if
(
b_fullscreen
)
{
input_thread_t
*
p_input
=
pl_CurrentInput
(
VLCIntf
);
if
(
p_input
!=
NULL
&&
[
self
activeVideoPlayback
])
if
(
p_input
!=
NULL
&&
[
self
activeVideoPlayback
]
)
{
if
(
b_fullscreen
)
[
o_mainwindow
performSelectorOnMainThread
:
@selector
(
enterFullscreen
)
withObject
:
nil
waitUntilDone
:
NO
];
vlc_object_release
(
p_input
);
}
}
else
{
// leaving fullscreen is always allowed
[
o_mainwindow
performSelectorOnMainThread
:
@selector
(
leaveFullscreen
)
withObject
:
nil
waitUntilDone
:
NO
];
vlc_object_release
(
p_input
);
}
}
}
...
...
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