andreasgal/gaia — Issue #540: If the screen is being turned off by timer, bring it back with home button doesn't lock the screen
Author: timdream
Created: 2012-02-21 22:43:59+00:00
State: open
Labels: bug, homescreen

This bug is caused by the fact lockscreen gets updated every time sleep button is pressed (off or on), but not the homescreen button.

Lockscreen *could* listens to home button events, but it would not know whether the home button is in it's normal operation or it had just turned on the screen.

To solve the issue we would need to (A) fire a `screen-is-off-by-timer` event from chrome script, enable lockscreen as it fires, or (B) some how add a detail information on that the home button had just done in the home button event, have lockscreen enabled when the home button is waking up the screen.