Send WINDOW_STATE_CHANGE when window becomes visible or gains focus

Previously we would only send STATE_CHANGE events when the window was
added and then received input focus.

Bug: 23974711
Change-Id: Ic25ed64e024f69818c34574d7f57413699088d99
1 file changed