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
fc562ac8
Commit
fc562ac8
authored
Sep 03, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: reset window size to the one before video was started
close #6019
parent
083f1390
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
modules/gui/macosx/MainWindow.h
modules/gui/macosx/MainWindow.h
+2
-0
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+4
-0
No files found.
modules/gui/macosx/MainWindow.h
View file @
fc562ac8
...
...
@@ -161,6 +161,8 @@
VLCWindow
*
o_extra_video_window
;
id
o_current_video_window
;
NSRect
frameBeforePlayback
;
}
+
(
VLCMainWindow
*
)
sharedInstance
;
@property
(
readonly
)
BOOL
fullscreen
;
...
...
modules/gui/macosx/MainWindow.m
View file @
fc562ac8
...
...
@@ -1887,9 +1887,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
BOOL
b_videoPlayback
=
[[
VLCMain
sharedInstance
]
activeVideoPlayback
];
if
(
b_videoPlayback
)
{
frameBeforePlayback
=
[
self
frame
];
// look for 'start at fullscreen'
[[
VLCMain
sharedInstance
]
fullscreenChanged
];
}
else
{
[[
self
animator
]
setFrame
:
frameBeforePlayback
display
:
YES
];
[
self
makeFirstResponder
:
nil
];
[
o_detached_video_window
orderOut
:
nil
];
if
(
o_extra_video_window
)
...
...
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