Commit a98452a2 authored by Aleksandr Pasechnik's avatar Aleksandr Pasechnik Committed by David Fuhrmann

macosx: non-fullscreen video windows hide mouse

Allow the mouse cursor to be hidden in regular active video windws, in addition
to fullscreen videos.
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 09f2f703
......@@ -640,6 +640,15 @@
{
if (b_fullscreen)
[self recreateHideMouseTimer];
if (b_has_active_video && [self isKeyWindow]) {
if (NSPointInRect([theEvent locationInWindow],
[[self videoView] convertRect:[[self videoView] bounds]
toView:nil])) {
[self recreateHideMouseTimer];
} else {
[t_hide_mouse_timer invalidate];
}
}
[super mouseMoved: theEvent];
}
......
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