From: Jean-Baptiste Kempf Date: Mon, 24 Mar 2008 06:04:18 +0000 (-0700) Subject: Hide Mouse Timeout on mac. X-Git-Tag: 0.9.0-test0~1911 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=e563d38ce8b7dea895e85f16fc0dc571f70b5df9 Hide Mouse Timeout on mac. --- diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 11e7cc0f61..55bddd861f 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]; }