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
a7026d19
Commit
a7026d19
authored
Jan 07, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: some improvements to the non-embedded vout window
parent
c90a3e02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+14
-2
No files found.
modules/gui/macosx/MainWindow.m
View file @
a7026d19
...
...
@@ -396,6 +396,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
self
setBackgroundColor
:
[
NSColor
clearColor
]];
[
self
setOpaque
:
NO
];
[
self
setHasShadow
:
YES
];
NSRect
winrect
;
CGFloat
f_titleBarHeight
=
[
o_titlebar_view
frame
].
size
.
height
;
...
...
@@ -430,6 +431,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
if
(
OSX_LEOPARD
)
[
o_time_sld_fancygradient_view
removeFromSuperviewWithoutNeedingDisplay
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
someWindowWillClose
:
)
name
:
NSWindowWillCloseNotification
object
:
nil
];
}
#pragma mark -
...
...
@@ -700,6 +703,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
{
if
(
b_dark_interface
)
[
o_titlebar_view
setWindowTitle
:
title
];
if
(
b_nonembedded
&&
[[
VLCMain
sharedInstance
]
activeVideoPlayback
])
[
o_nonembedded_window
setTitle
:
title
];
[
super
setTitle
:
title
];
}
...
...
@@ -1069,11 +1074,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
}
else
{
[
o_video_view
removeFromSuperviewWithoutNeedingDisplay
];
if
([
o_video_view
superview
]
!=
NULL
)
[
o_video_view
removeFromSuperviewWithoutNeedingDisplay
];
if
(
o_nonembedded_window
)
[
o_nonembedded_window
release
];
o_nonembedded_window
=
[[
VLCWindow
alloc
]
initWithContentRect
:[
o_video_view
frame
]
styleMask
:
NS
BorderlessWindowMask
|
NSRes
izableWindowMask
backing
:
NSBackingStoreBuffered
defer
:
YES
];
o_nonembedded_window
=
[[
VLCWindow
alloc
]
initWithContentRect
:[
o_video_view
frame
]
styleMask
:
NS
TitledWindowMask
|
NSClosableWindowMask
|
NSResizableWindowMask
|
NSMiniatur
izableWindowMask
backing
:
NSBackingStoreBuffered
defer
:
YES
];
[
o_nonembedded_window
setFrame
:[
o_video_view
frame
]
display
:
NO
];
[
o_nonembedded_window
setBackgroundColor
:
[
NSColor
blackColor
]];
[
o_nonembedded_window
setMovableByWindowBackground
:
YES
];
...
...
@@ -1187,6 +1193,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
NSCursor
setHiddenUntilMouseMoves
:
YES
];
}
-
(
void
)
someWindowWillClose
:(
NSNotification
*
)
notification
{
if
([
notification
object
]
==
o_nonembedded_window
)
[[
VLCCoreInteraction
sharedInstance
]
stop
];
}
#pragma mark -
#pragma mark Fullscreen support
-
(
void
)
showFullscreenController
...
...
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