Trying to get the right interaction for show clock
authorEnrico Zini <enrico@enricozini.org>
Sat, 22 Aug 2009 23:00:08 +0000 (00:00 +0100)
committerEnrico Zini <enrico@enricozini.org>
Sat, 22 Aug 2009 23:00:08 +0000 (00:00 +0100)
src/app_power.vala

index 5dc5f8d1ef55d8ebc5715425f50e2733e67ebcd8..71c8e167f79a404fd98266a1b67f26ab7131fd1f 100644 (file)
@@ -194,7 +194,7 @@ public class Power : zavai.Resource, Object
        private void on_power_short_press(Posix.timeval* t)
        {
                long diff = timediff(t, &last_short_press);
-               bool combo = diff <= 1000000;
+               bool combo = screen_locked && (diff <= 5000000);
                last_short_press = *t;
 
                if (screen_locked)