]> git.sesse.net Git - vlc/commitdiff
Hide Mouse Timeout on mac.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 24 Mar 2008 06:04:18 +0000 (23:04 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 24 Mar 2008 06:04:49 +0000 (23:04 -0700)
modules/gui/macosx/vout.m

index 11e7cc0f6105b58ea916565441ef1734f0e89d00..55bddd861f0b14c6beb91ea738137936d3aa358f 100644 (file)
@@ -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];
         }