Fix screen also flashing when browser is backgrounded.

Signed-off-by: Lucas de Vries <lucas@glacicle.org>