Reset short press combo timers on long press
authorEnrico Zini <enrico@enricozini.org>
Sat, 22 Aug 2009 23:04:46 +0000 (00:04 +0100)
committerEnrico Zini <enrico@enricozini.org>
Sat, 22 Aug 2009 23:04:46 +0000 (00:04 +0100)
src/app_power.vala

index 71c8e167f79a404fd98266a1b67f26ab7131fd1f..d809418cafee541ae8a103f9159f8c054fc17cae 100644 (file)
@@ -187,7 +187,12 @@ public class Power : zavai.Resource, Object
                        }
                }
 
-               if (long_press) power_long_press();
+               if (long_press)
+               {
+                       power_long_press();
+                       last_short_press.tv_sec = 0;
+                       last_short_press.tv_usec = 0;
+               }
                if (short_press) power_short_press(t);
        }