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
dce6109d
Commit
dce6109d
authored
Aug 09, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: retain window level across a fullscreen session
parent
e24e9a5f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+13
-1
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+2
-2
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+0
-10
No files found.
modules/gui/macosx/MainWindow.m
View file @
dce6109d
...
@@ -945,7 +945,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -945,7 +945,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_fullscreen_window
makeKeyAndOrderFront
:
self
];
[
o_fullscreen_window
makeKeyAndOrderFront
:
self
];
[
o_fullscreen_window
orderFront
:
self
animate
:
YES
];
[
o_fullscreen_window
orderFront
:
self
animate
:
YES
];
[
o_fullscreen_window
setFrame
:
screen_rect
display
:
YES
];
[
o_fullscreen_window
setFrame
:
screen_rect
display
:
YES
animate
:
YES
];
[
o_fullscreen_window
setLevel
:
NSNormalWindowLevel
];
if
(
blackout_other_displays
)
if
(
blackout_other_displays
)
{
{
...
@@ -1034,6 +1035,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1034,6 +1035,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
/* tell the fspanel to move itself to front next time it's triggered */
/* tell the fspanel to move itself to front next time it's triggered */
[
o_fspanel
setVoutWasUpdated
:
(
int
)[[
o_fullscreen_window
screen
]
displayID
]];
[
o_fspanel
setVoutWasUpdated
:
(
int
)[[
o_fullscreen_window
screen
]
displayID
]];
[
o_fspanel
setActive
:
nil
];
if
([
self
isVisible
])
if
([
self
isVisible
])
[
super
orderOut
:
self
];
[
super
orderOut
:
self
];
...
@@ -1062,6 +1064,16 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1062,6 +1064,16 @@ static VLCMainWindow *_o_sharedInstance = nil;
/* We always try to do so */
/* We always try to do so */
[
NSScreen
unblackoutScreens
];
[
NSScreen
unblackoutScreens
];
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
if
(
var_GetBool
(
p_vout
,
"video-on-top"
)
)
[
self
setLevel
:
NSStatusWindowLevel
];
else
[
self
setLevel
:
NSNormalWindowLevel
];
vlc_object_release
(
p_vout
);
}
[
self
makeKeyAndOrderFront
:
nil
];
/* Don't do anything if o_fullscreen_window is already closed */
/* Don't do anything if o_fullscreen_window is already closed */
if
(
!
o_fullscreen_window
)
if
(
!
o_fullscreen_window
)
...
...
modules/gui/macosx/fspanel.m
View file @
dce6109d
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
*****************************************************************************/
*****************************************************************************/
#import "intf.h"
#import "intf.h"
#import "CoreInteraction.h"
#import "CoreInteraction.h"
#import "
vout
.h"
#import "
MainWindow
.h"
#import "misc.h"
#import "misc.h"
#import "fspanel.h"
#import "fspanel.h"
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
if
(
p_vout
)
if
(
p_vout
)
{
{
if
(
var_GetBool
(
p_vout
,
"fullscreen"
))
if
(
var_GetBool
(
p_vout
,
"fullscreen"
))
[[[[
VLC
CoreInteraction
sharedInstance
]
vout
View
]
window
]
makeKeyWindow
];
[[[[
VLC
MainWindow
sharedInstance
]
video
View
]
window
]
makeKeyWindow
];
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
}
}
}
}
...
...
modules/gui/macosx/vout.m
View file @
dce6109d
...
@@ -152,19 +152,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -152,19 +152,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[
o_view
setFrameSize
:
[
self
frame
].
size
];
[
o_view
setFrameSize
:
[
self
frame
].
size
];
}
}
-
(
void
)
drawRect
:(
NSRect
)
rect
{
/* When there is no subview we draw a black background */
[
self
lockFocus
];
[[
NSColor
blackColor
]
set
];
NSRectFill
(
rect
);
[
self
unlockFocus
];
}
-
(
void
)
closeVout
-
(
void
)
closeVout
{
{
/* Make sure we don't see a white flash */
/* Make sure we don't see a white flash */
[[
o_view
window
]
disableScreenUpdatesUntilFlush
];
[
o_view
removeFromSuperview
];
[
o_view
removeFromSuperview
];
[
o_view
release
];
[
o_view
release
];
o_view
=
nil
;
o_view
=
nil
;
...
...
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