[vlc-devel] commit: Hide Mouse Timeout on mac. (Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Mar 24 07:04:40 CET 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Mar 23 23:04:18 2008 -0700| [e563d38ce8b7dea895e85f16fc0dc571f70b5df9]

Hide Mouse Timeout on mac.

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

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

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 11e7cc0..55bddd8 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -851,9 +851,11 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
 - (void)manage
 {
     [super manage];
+    unsigned int i_mouse_hide_timeout =
+        var_GetInteger(p_vout, "mouse-hide-timeout") * 1000;
     if( p_vout->b_fullscreen )
     {
-        if( mdate() - i_time_mouse_last_moved > 3000000 )
+        if( mdate() - i_time_mouse_last_moved > i_mouse_hide_timeout )
         {
             [self hideMouse: YES];
         }




More information about the vlc-devel mailing list