Changed the event on which the Runnable is run from WINDOW_OPENED to
WINDOW_ACTIVATED.