ToastFreeware
/
gregoa
/
zavai.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985250d
)
Trying to get the right interaction for show clock
author
Enrico Zini
<enrico@enricozini.org>
Sat, 22 Aug 2009 23:00:08 +0000
(
00:00
+0100)
committer
Enrico Zini
<enrico@enricozini.org>
Sat, 22 Aug 2009 23:00:08 +0000
(
00:00
+0100)
src/app_power.vala
patch
|
blob
|
history
diff --git
a/src/app_power.vala
b/src/app_power.vala
index 5dc5f8d1ef55d8ebc5715425f50e2733e67ebcd8..71c8e167f79a404fd98266a1b67f26ab7131fd1f 100644
(file)
--- a/
src/app_power.vala
+++ b/
src/app_power.vala
@@
-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)