From: Pierre d'Herbemont Date: Tue, 22 Jul 2008 21:31:25 +0000 (+0200) Subject: macosx: in detached window set the min value of i_mouse_hide_timeout to 100ms. Else... X-Git-Tag: 0.9.0-test3~316 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4081f99ff023c4c62d99c50ee54bdd2c498ace4c;p=vlc macosx: in detached window set the min value of i_mouse_hide_timeout to 100ms. Else it is unusable. --- diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 6fc295e1ea..b590f817d5 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -857,13 +857,18 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, - (void)manage { + /* Dooh, why do we spend processor time doing this kind of stuff? */ [super manage]; unsigned int i_mouse_hide_timeout = var_GetInteger(p_vout, "mouse-hide-timeout") * 1000; + + if( i_mouse_hide_timeout < 100000 ) + i_mouse_hide_timeout = 100000; if( p_vout->b_fullscreen ) { if( mdate() - i_time_mouse_last_moved > i_mouse_hide_timeout ) { + i_time_mouse_last_moved = mdate(); [self hideMouse: YES]; } }