[vlc-devel] commit: macosx: Make sure the vout window send mouseEvents properly. ( Pierre d'Herbemont )

git version control git at videolan.org
Mon Jul 21 20:47:02 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Jul 21 20:49:08 2008 +0200| [037d4785d03ed25d8bd3c8a77e1f50933de11d54]

macosx: Make sure the vout window send mouseEvents properly.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=037d4785d03ed25d8bd3c8a77e1f50933de11d54
---

 modules/gui/macosx/vout.m |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 94114df..6fc295e 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -1059,6 +1059,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         /* We'll catch mouse events */
         [self makeFirstResponder: o_view];
         [self setCanBecomeKeyWindow: YES];
+        [self setAcceptsMouseMovedEvents: YES];
+        [self setIgnoresMouseEvents: NO];
 
         if( var_CreateGetBool( p_vout, "macosx-background" ) )
         {




More information about the vlc-devel mailing list