[vlc-devel] commit: macosx: in detached window set the min value of i_mouse_hide_timeout to 100ms. Else it is unusable. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Jul 22 23:28:56 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Jul 22 23:31:25 2008 +0200| [4081f99ff023c4c62d99c50ee54bdd2c498ace4c]
macosx: in detached window set the min value of i_mouse_hide_timeout to 100ms. Else it is unusable.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4081f99ff023c4c62d99c50ee54bdd2c498ace4c
---
modules/gui/macosx/vout.m | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 6fc295e..b590f81 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];
}
}
More information about the vlc-devel
mailing list