Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC Browser Plugins
Commits
96aca36d
Commit
96aca36d
authored
Jan 04, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowed mac plugin: show toolbar only when cursor is within view
parent
678fb74b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
npapi/vlcplugin_mac.mm
npapi/vlcplugin_mac.mm
+11
-1
No files found.
npapi/vlcplugin_mac.mm
View file @
96aca36d
...
...
@@ -199,7 +199,7 @@ int VlcPluginMac::get_fullscreen()
void
VlcPluginMac
::
set_toolbar_visible
(
bool
b_value
)
{
controllerLayer
.
opaque
=
(
float
)
b_value
;
[
controllerLayer
setHidden
:
!
b_value
]
;
}
bool
VlcPluginMac
::
get_toolbar_visible
()
...
...
@@ -303,6 +303,16 @@ bool VlcPluginMac::handle_event(void *event)
return
true
;
}
case
NPCocoaEventMouseEntered
:
{
set_toolbar_visible
(
true
);
return
true
;
}
case
NPCocoaEventMouseExited
:
{
set_toolbar_visible
(
false
);
return
true
;
}
case
NPCocoaEventKeyUp
:
case
NPCocoaEventKeyDown
:
case
NPCocoaEventFocusChanged
:
...
...
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