[vlc-devel] [PATCH] gestures: fix: allow gesture to be triggered

Zoran Turalija zoran.turalija at gmail.com
Sun Mar 8 17:35:33 CET 2015


---
 modules/control/gestures.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index 2b40fc4..a2fe30b 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -417,6 +417,11 @@ static int MovedEvent( vlc_object_t *p_this, char const *psz_var,
                 p_sys->i_pattern |= pattern << ( p_sys->i_num_gestures * 4 );
                 p_sys->i_num_gestures++;
             }
+            else if( p_sys->i_num_gestures == 0 )
+            {
+                p_sys->i_pattern = pattern;
+                p_sys->i_num_gestures++;
+            }
         }
 
     }
-- 
2.1.4


-- 
Kind regards,
Zoran Turalija



More information about the vlc-devel mailing list