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
e6de5c7a
Commit
e6de5c7a
authored
Jun 20, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: save idle main window frame as early as possible (refs #8826)
parent
370d8f5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
modules/gui/macosx/MainWindow.h
modules/gui/macosx/MainWindow.h
+1
-0
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+8
-5
modules/gui/macosx/VLCVoutWindowController.m
modules/gui/macosx/VLCVoutWindowController.m
+3
-0
No files found.
modules/gui/macosx/MainWindow.h
View file @
e6de5c7a
...
@@ -130,6 +130,7 @@
...
@@ -130,6 +130,7 @@
-
(
void
)
showFullscreenController
;
-
(
void
)
showFullscreenController
;
-
(
void
)
videoplayWillBeStarted
;
-
(
void
)
setVideoplayEnabled
;
-
(
void
)
setVideoplayEnabled
;
@end
@end
...
...
modules/gui/macosx/MainWindow.m
View file @
e6de5c7a
...
@@ -737,14 +737,17 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -737,14 +737,17 @@ static VLCMainWindow *_o_sharedInstance = nil;
#pragma mark -
#pragma mark -
#pragma mark Video Output handling
#pragma mark Video Output handling
-
(
void
)
videoplayWillBeStarted
{
if
(
!
b_fullscreen
)
frameBeforePlayback
=
[
self
frame
];
}
-
(
void
)
setVideoplayEnabled
-
(
void
)
setVideoplayEnabled
{
{
BOOL
b_videoPlayback
=
[[
VLCMain
sharedInstance
]
activeVideoPlayback
];
BOOL
b_videoPlayback
=
[[
VLCMain
sharedInstance
]
activeVideoPlayback
];
if
(
b_videoPlayback
)
{
if
(
!
b_videoPlayback
)
{
if
(
!
b_fullscreen
)
frameBeforePlayback
=
[
self
frame
];
}
else
{
if
(
!
b_nonembedded
&&
(
!
b_nativeFullscreenMode
||
(
b_nativeFullscreenMode
&&
!
b_fullscreen
))
&&
frameBeforePlayback
.
size
.
width
>
0
&&
frameBeforePlayback
.
size
.
height
>
0
)
if
(
!
b_nonembedded
&&
(
!
b_nativeFullscreenMode
||
(
b_nativeFullscreenMode
&&
!
b_fullscreen
))
&&
frameBeforePlayback
.
size
.
width
>
0
&&
frameBeforePlayback
.
size
.
height
>
0
)
[[
self
animator
]
setFrame
:
frameBeforePlayback
display
:
YES
];
[[
self
animator
]
setFrame
:
frameBeforePlayback
display
:
YES
];
...
...
modules/gui/macosx/VLCVoutWindowController.m
View file @
e6de5c7a
...
@@ -66,6 +66,9 @@
...
@@ -66,6 +66,9 @@
VLCVoutView
*
o_vout_view
;
VLCVoutView
*
o_vout_view
;
VLCVideoWindowCommon
*
o_new_video_window
;
VLCVideoWindowCommon
*
o_new_video_window
;
// should be called before any window resizing occurs
[[
VLCMainWindow
sharedInstance
]
videoplayWillBeStarted
];
if
(
b_multiple_vout_windows
&&
b_video_wallpaper
)
if
(
b_multiple_vout_windows
&&
b_video_wallpaper
)
b_video_wallpaper
=
false
;
b_video_wallpaper
=
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