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
300571b2
Commit
300571b2
authored
Mar 03, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X gui: Make sure the embedded window don't get shown before it is resized, if it was hidden.
parent
7da0bc9c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
modules/gui/macosx/vout.h
modules/gui/macosx/vout.h
+3
-0
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+18
-5
No files found.
modules/gui/macosx/vout.h
View file @
300571b2
...
@@ -101,6 +101,9 @@
...
@@ -101,6 +101,9 @@
BOOL
b_used
;
BOOL
b_used
;
}
}
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
p_arg_vout
subView
:
(
NSView
*
)
view
frame
:
(
NSRect
*
)
s_arg_frame
showWindow
:
(
BOOL
)
b_show_window
;
-
(
void
)
setUsed
:
(
BOOL
)
b_new_used
;
-
(
void
)
setUsed
:
(
BOOL
)
b_new_used
;
-
(
BOOL
)
isUsed
;
-
(
BOOL
)
isUsed
;
...
...
modules/gui/macosx/vout.m
View file @
300571b2
...
@@ -861,14 +861,14 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -861,14 +861,14 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
}
}
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
p_arg_vout
subView
:
(
NSView
*
)
view
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
p_arg_vout
subView
:
(
NSView
*
)
view
frame
:
(
NSRect
*
)
s_arg_frame
frame
:
(
NSRect
*
)
s_arg_frame
showWindow
:
(
BOOL
)
b_show_window
{
{
BOOL
b_return
;
BOOL
b_return
;
b_return
=
[
super
setVout
:
p_arg_vout
subView
:
view
frame
:
s_arg_frame
];
b_return
=
[
super
setVout
:
p_arg_vout
subView
:
view
frame
:
s_arg_frame
];
if
(
b_return
)
if
(
b_return
)
{
{
o_window
=
[
self
window
];
o_window
=
[
self
window
];
if
(
b_show_window
)
[
o_window
makeKeyAndOrderFront
:
self
];
[
o_window
makeKeyAndOrderFront
:
self
];
[
o_window
setAcceptsMouseMovedEvents
:
TRUE
];
[
o_window
setAcceptsMouseMovedEvents
:
TRUE
];
...
@@ -882,6 +882,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -882,6 +882,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
return
b_return
;
return
b_return
;
}
}
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
p_arg_vout
subView
:
(
NSView
*
)
view
frame
:
(
NSRect
*
)
s_arg_frame
{
return
[
self
setVout
:
p_arg_vout
subView
:
view
frame
:
s_arg_frame
showWindow
:
YES
];
}
-
(
void
)
setUsed
:
(
BOOL
)
b_new_used
-
(
void
)
setUsed
:
(
BOOL
)
b_new_used
{
{
b_used
=
b_new_used
;
b_used
=
b_new_used
;
...
@@ -911,7 +918,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -911,7 +918,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
p_arg_vout
subView
:
(
NSView
*
)
view
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
p_arg_vout
subView
:
(
NSView
*
)
view
frame
:
(
NSRect
*
)
s_arg_frame
frame
:
(
NSRect
*
)
s_arg_frame
{
{
BOOL
b_return
=
[
super
setVout
:
p_arg_vout
subView
:
view
frame
:
s_arg_frame
];
BOOL
b_return
=
[
super
setVout
:
p_arg_vout
subView
:
view
frame
:
s_arg_frame
showWindow
:
NO
];
/* o_window needs to point to our o_embeddedwindow, super might have set it
/* o_window needs to point to our o_embeddedwindow, super might have set it
* to the fullscreen window that o_embeddedwindow setups during fullscreen */
* to the fullscreen window that o_embeddedwindow setups during fullscreen */
...
@@ -922,10 +929,16 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -922,10 +929,16 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[
o_window
setAlphaValue
:
var_GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
[
o_window
setAlphaValue
:
var_GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
[
self
updateTitle
];
[
self
updateTitle
];
if
(
!
([
o_window
isFullscreen
]))
/* Make the window the front and key window before animating */
if
([
o_window
isVisible
]
&&
(
!
[
o_window
isFullscreen
]))
[
o_window
makeKeyAndOrderFront
:
self
];
[
o_window
makeKeyAndOrderFront
:
self
];
[
self
scaleWindowWithFactor
:
1
.
0
animate
:
[
o_window
isVisible
]
&&
(
!
[
o_window
isFullscreen
])];
[
self
scaleWindowWithFactor
:
1
.
0
animate
:
[
o_window
isVisible
]
&&
(
!
[
o_window
isFullscreen
])];
/* Make sure our window is visible, if we are not in fullscreen */
if
(
!
[
o_window
isFullscreen
])
[
o_window
makeKeyAndOrderFront
:
self
];
}
}
return
b_return
;
return
b_return
;
}
}
...
...
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