daemon: fix missed quick-double-press events
authorAlex Badea <vamposdecampos@gmail.com>
Sun, 13 Jun 2010 11:06:24 +0000 (14:06 +0300)
committerAlex Badea <vamposdecampos@gmail.com>
Sun, 13 Jun 2010 11:06:24 +0000 (14:06 +0300)
commit045ba86190bfaf0e49369f9caea061583feff4c4
treee5aaaabf957ad4a15241838e52cbd445ae1710a4
parentb4b15b448be730515694f8f1e4ce12a0e318eb3d
daemon: fix missed quick-double-press events

Double-pressing the power button at a normal rate
(such as, the rate used for locking the display) will
usually result in the two ButtonPressed events being
received before the display_status==on event.  Speech
would not play in this case.

Work around this by monitoring ButtonPressed timing
and triggering speech from the display_status signal.
src/daemon.c