projects
/
espeaktime
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9073ab3
)
daemon: fix spurious speech trigger
author
Alex Badea
<vamposdecampos@gmail.com>
Sun, 13 Jun 2010 12:33:26 +0000
(15:33 +0300)
committer
Alex Badea
<vamposdecampos@gmail.com>
Sun, 13 Jun 2010 12:33:26 +0000
(15:33 +0300)
src/daemon.c
patch
|
blob
|
history
diff --git
a/src/daemon.c
b/src/daemon.c
index
de5f6d3
..
065c990
100644
(file)
--- a/
src/daemon.c
+++ b/
src/daemon.c
@@
-46,7
+46,7
@@
static void sig_display_status(DBusGProxy *proxy, const char *status, gpointer u
* in the two ButtonPress events being received before the display_status==on
* event. Check here if that's the case.
*/
- if (app->display_on && app->press_count > 1 && app->last_press - time(NULL) <= 1)
+ if (app->display_on && app->press_count > 1 && time(NULL) - app->last_press <= 1)
speak_time(app);
}