[vlc-commits] macosx: Fix mouse detection in fscontroller
Marvin Scholz
git at videolan.org
Tue Dec 13 14:05:54 CET 2016
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Dec 13 14:05:34 2016 +0100| [f19a1aee098771c975796688efbf541d390530b3] | committer: Marvin Scholz
macosx: Fix mouse detection in fscontroller
Replaces NSPointInRect with NSMouseInRect to detect if the mouse
is currently inside the fscontroller window frame.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f19a1aee098771c975796688efbf541d390530b3
---
modules/gui/macosx/VLCFSPanelController.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/macosx/VLCFSPanelController.m b/modules/gui/macosx/VLCFSPanelController.m
index 818ee31..6822fe1 100644
--- a/modules/gui/macosx/VLCFSPanelController.m
+++ b/modules/gui/macosx/VLCFSPanelController.m
@@ -360,7 +360,7 @@
- (void)autohideCallback:(NSTimer *)timer
{
- if (!NSPointInRect([NSEvent mouseLocation], [self.window frame])) {
+ if (!NSMouseInRect([NSEvent mouseLocation], [self.window frame], NO)) {
[self fadeOut];
[self hideMouse];
}
More information about the vlc-commits
mailing list