From 4081f99ff023c4c62d99c50ee54bdd2c498ace4c Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Tue, 22 Jul 2008 23:31:25 +0200 Subject: [PATCH] macosx: in detached window set the min value of i_mouse_hide_timeout to 100ms. Else it is unusable. --- modules/gui/macosx/vout.m | 5 +++++ 1 file changed, 5 insertions(+) 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]; } } -- 2.39.2