]> git.sesse.net Git - vlc/commitdiff
macosx: in detached window set the min value of i_mouse_hide_timeout to 100ms. Else...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 22 Jul 2008 21:31:25 +0000 (23:31 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 22 Jul 2008 21:31:25 +0000 (23:31 +0200)
modules/gui/macosx/vout.m

index 6fc295e1ea9725ed8fbf4161d9ae3dd38d7e0a13..b590f817d5d7aa1c3af569db2ab54fe22e7311ac 100644 (file)
@@ -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];
         }
     }