X-Git-Url: http://git.maemo.org/git/?p=espeaktime;a=blobdiff_plain;f=src%2Fdaemon.c;h=3c6da747d67ec647d5d1832d2c03e36901be3103;hp=a645b3546593e8147fdfade0788228a22c55f8d3;hb=df91e1a4c233ce7d23b70136b1158fa98d6c59c1;hpb=de03e3d954981c59698b91f055cbc4fc4293b79d diff --git a/src/daemon.c b/src/daemon.c index a645b35..3c6da74 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -50,7 +51,8 @@ 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 && time(NULL) - app->last_press <= 1) + if (app->mode_locked && app->display_on && app->press_count > 1 && + time(NULL) - app->last_press <= 1) speak_time(app); }