Only update if window has focus