Commit 96aca36d authored by Felix Paul Kühne's avatar Felix Paul Kühne

windowed mac plugin: show toolbar only when cursor is within view

parent 678fb74b
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment